Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|counterFlowNTU1.h_out_A|counterFlowNTU1.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial") translateModel(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|counterFlowNTU1.h_out_A|counterFlowNTU1.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007842/0.007842, allocations: 101.1 kB / 15.73 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001806/0.001806, allocations: 192.3 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7234/0.7234, allocations: 91.19 MB / 381.7 MB, free: 7.5 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 75.86 kB / 0.5168 GB, free: 4.102 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3554/0.357, allocations: 67.69 MB / 0.583 GB, free: 14.08 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial): time 0.6131/0.9701, allocations: 234.9 MB / 0.8124 GB, free: 428 kB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02594/0.9961, allocations: 22.27 MB / 0.8341 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003748/0.9999, allocations: 55.28 kB / 0.8342 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.003331/1.003, allocations: 0.7959 MB / 0.835 GB, free: 12.82 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.007148/1.011, allocations: 2.017 MB / 0.8369 GB, free: 12.06 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.006762/1.017, allocations: 2.167 MB / 0.8391 GB, free: 11 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003629/1.021, allocations: 2.181 MB / 0.8412 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008755/1.022, allocations: 419 kB / 0.8416 GB, free: 9.965 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003068/1.025, allocations: 1.361 MB / 0.8429 GB, free: 9.344 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001781/1.027, allocations: 0.84 MB / 0.8437 GB, free: 8.684 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0004855/1.027, allocations: 132 kB / 0.8439 GB, free: 8.555 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.009251/1.037, allocations: 4.09 MB / 0.8479 GB, free: 4.738 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0006088/1.037, allocations: 351.2 kB / 0.8482 GB, free: 4.414 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.001678/1.039, allocations: 0.8081 MB / 0.849 GB, free: 3.617 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.008268/1.047, allocations: 3.011 MB / 0.8519 GB, free: 0.8125 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/1.047, allocations: 8 kB / 0.8519 GB, free: 0.8047 MB / 0.5919 GB Notification: Performance of FrontEnd: time 2.415e-06/1.047, allocations: 0 / 0.8519 GB, free: 0.8047 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0001049/1.047, allocations: 0 / 0.8519 GB, free: 0.8047 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 316 * Number of variables: 316 Notification: Performance of Generate backend data structure: time 0.005732/1.053, allocations: 2.356 MB / 0.8542 GB, free: 14.43 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/1.053, allocations: 16.02 kB / 0.8542 GB, free: 14.41 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00329/1.056, allocations: 414.5 kB / 0.8546 GB, free: 14.01 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002307/1.059, allocations: 1.093 MB / 0.8557 GB, free: 12.92 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004063/1.059, allocations: 356 kB / 0.856 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002971/1.06, allocations: 127.2 kB / 0.8562 GB, free: 12.4 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003317/1.063, allocations: 1.449 MB / 0.8576 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.975e-05/1.063, allocations: 0 / 0.8576 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001293/1.063, allocations: 52 kB / 0.8576 GB, free: 10.85 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.687e-05/1.063, allocations: 32 kB / 0.8577 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002929/1.066, allocations: 1.19 MB / 0.8588 GB, free: 9.629 MB / 0.6075 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008037/1.074, allocations: 5.447 MB / 0.8641 GB, free: 3.863 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003117/1.077, allocations: 1.321 MB / 0.8654 GB, free: 2.539 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001598/1.079, allocations: 0.7138 MB / 0.8661 GB, free: 1.824 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001197/1.08, allocations: 1.791 MB / 0.8679 GB, free: 15.64 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/1.08, allocations: 43.56 kB / 0.8679 GB, free: 15.59 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=113): time 3.507e-06/1.08, allocations: 0 / 0.8679 GB, free: 15.59 MB / 0.6231 GB Notification: Performance of matching and sorting (n=113): time 0.009182/1.089, allocations: 3.048 MB / 0.8709 GB, free: 12.46 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.151e-05/1.089, allocations: 64.41 kB / 0.871 GB, free: 12.38 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001407/1.091, allocations: 0.8755 MB / 0.8718 GB, free: 11.49 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0001251/1.091, allocations: 47.95 kB / 0.8719 GB, free: 11.44 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004799/1.091, allocations: 0.6113 MB / 0.8725 GB, free: 10.82 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004263/1.092, allocations: 414.6 kB / 0.8729 GB, free: 10.42 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004693/1.092, allocations: 210.9 kB / 0.8731 GB, free: 10.21 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001413/1.092, allocations: 341.9 kB / 0.8734 GB, free: 9.871 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001264/1.094, allocations: 0.4905 MB / 0.8739 GB, free: 9.379 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001357/1.095, allocations: 0.584 MB / 0.8744 GB, free: 8.781 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002648/1.098, allocations: 1.052 MB / 0.8755 GB, free: 7.723 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/1.098, allocations: 0 / 0.8755 GB, free: 7.723 MB / 0.6231 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.005572/1.103, allocations: 1.921 MB / 0.8773 GB, free: 5.797 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.703e-05/1.103, allocations: 8 kB / 0.8773 GB, free: 5.789 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.434e-05/1.103, allocations: 11.92 kB / 0.8774 GB, free: 5.777 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001419/1.105, allocations: 413.6 kB / 0.8777 GB, free: 5.363 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001498/1.106, allocations: 301.9 kB / 0.878 GB, free: 5.078 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009968/1.116, allocations: 7.428 MB / 0.8853 GB, free: 13.12 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001101/1.117, allocations: 131.3 kB / 0.8854 GB, free: 13 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002267/1.118, allocations: 67.97 kB / 0.8855 GB, free: 12.93 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,1,88.9%), (3,1,88.9%), (1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006396/1.118, allocations: 268 kB / 0.8857 GB, free: 12.67 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003685/1.119, allocations: 135.1 kB / 0.8859 GB, free: 12.54 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00666/1.125, allocations: 2.714 MB / 0.8885 GB, free: 9.812 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/1.125, allocations: 12 kB / 0.8885 GB, free: 9.801 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.68e-05/1.125, allocations: 8 kB / 0.8885 GB, free: 9.793 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.618e-05/1.126, allocations: 11.91 kB / 0.8885 GB, free: 9.781 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00794/1.133, allocations: 3.58 MB / 0.892 GB, free: 6.152 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-05/1.133, allocations: 7.984 kB / 0.892 GB, free: 6.145 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001556/1.135, allocations: 290.1 kB / 0.8923 GB, free: 5.871 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001334/1.136, allocations: 423 kB / 0.8927 GB, free: 5.445 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001413/1.137, allocations: 55.84 kB / 0.8928 GB, free: 5.391 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009821/1.146, allocations: 7.427 MB / 0.9 GB, free: 13.44 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/1.146, allocations: 0 / 0.9 GB, free: 13.44 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006591/1.153, allocations: 2.611 MB / 0.9026 GB, free: 10.8 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006472/1.154, allocations: 311.8 kB / 0.9029 GB, free: 10.48 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002894/1.154, allocations: 31.92 kB / 0.9029 GB, free: 10.45 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/1.155, allocations: 71.88 kB / 0.903 GB, free: 10.38 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002145/1.155, allocations: 100.9 kB / 0.9031 GB, free: 10.28 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001427/1.155, allocations: 70.59 kB / 0.9031 GB, free: 10.21 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.000963/1.156, allocations: 0.6064 MB / 0.9037 GB, free: 9.598 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.41e-07/1.156, allocations: 0 / 0.9037 GB, free: 9.598 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001891/1.158, allocations: 0.6002 MB / 0.9043 GB, free: 8.996 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (counterFlowNTU.h_out_A,counterFlowNTU.h_out_B,counterFlowNTU1.h_out_A,counterFlowNTU1.h_out_B,mCV.inlet.m_flow,mCV.dp_int,mCV1.inlet.m_flow,mCV1.dp_int) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (106): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,5,100.0%), (3,1,88.9%), (3,1,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001642/1.16, allocations: 0.6886 MB / 0.905 GB, free: 8.359 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.004628/1.165, allocations: 1.899 MB / 0.9068 GB, free: 6.426 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/1.165, allocations: 0 / 0.9068 GB, free: 6.426 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.002872/1.167, allocations: 1.37 MB / 0.9082 GB, free: 5.027 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001736/1.169, allocations: 308.6 kB / 0.9085 GB, free: 4.738 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006116/1.175, allocations: 3.059 MB / 0.9115 GB, free: 1.652 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009175/1.176, allocations: 1.198 MB / 0.9126 GB, free: 432 kB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001769/1.178, allocations: 0.8349 MB / 0.9135 GB, free: 15.61 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005728/1.179, allocations: 195.3 kB / 0.9136 GB, free: 15.42 MB / 0.67 GB Notification: Performance of SimCode: time 8.82e-07/1.179, allocations: 0 / 0.9136 GB, free: 15.42 MB / 0.67 GB Notification: Performance of Templates: time 0.04184/1.22, allocations: 25.2 MB / 0.9382 GB, free: 6.453 MB / 0.6856 GB make -j1 -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.makefile (rm -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe ; mkfifo ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe >> ../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.sim & ./ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_serial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches