Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU") translateModel(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|counterFlowNTU.h_out_A|counterFlowNTU.h_out_B|mCV.dp_int|mCV1.dp_int|sourceA.outlet.m_flow|sourceB.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004851/0.004851, allocations: 102.8 kB / 15.73 MB, free: 6.035 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.001085/0.001085, allocations: 189.9 kB / 16.67 MB, free: 5.973 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6896/0.6896, allocations: 91.2 MB / 381.7 MB, free: 9.344 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001415/0.001415, allocations: 71.89 kB / 0.5169 GB, free: 9.023 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1358, allocations: 67.69 MB / 0.583 GB, free: 5.258 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU): time 0.5848/0.7207, allocations: 214.3 MB / 0.7922 GB, free: 1.391 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.01986/0.7406, allocations: 17.39 MB / 0.8092 GB, free: 15.95 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001484/0.7421, allocations: 47.69 kB / 0.8093 GB, free: 15.9 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001955/0.7441, allocations: 0.6054 MB / 0.8099 GB, free: 15.29 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.005007/0.7492, allocations: 1.72 MB / 0.8115 GB, free: 13.56 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.005054/0.7543, allocations: 1.672 MB / 0.8132 GB, free: 11.89 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.002684/0.7569, allocations: 1.658 MB / 0.8148 GB, free: 10.22 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005642/0.7575, allocations: 295.4 kB / 0.8151 GB, free: 9.922 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002644/0.7602, allocations: 1.183 MB / 0.8162 GB, free: 8.734 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00108/0.7613, allocations: 0.6258 MB / 0.8168 GB, free: 8.105 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.0002561/0.7615, allocations: 96 kB / 0.8169 GB, free: 8.012 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007273/0.7688, allocations: 3.432 MB / 0.8203 GB, free: 4.574 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0003812/0.7692, allocations: 246.9 kB / 0.8205 GB, free: 4.332 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.001113/0.7704, allocations: 0.6176 MB / 0.8211 GB, free: 3.711 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.008402/0.7788, allocations: 2.337 MB / 0.8234 GB, free: 1.367 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 8.646e-06/0.7788, allocations: 0 / 0.8234 GB, free: 1.367 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.685e-06/0.7788, allocations: 0 / 0.8234 GB, free: 1.367 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 8.087e-05/0.7789, allocations: 0 / 0.8234 GB, free: 1.367 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 227 * Number of variables: 227 Notification: Performance of Generate backend data structure: time 0.005447/0.7844, allocations: 1.819 MB / 0.8252 GB, free: 15.49 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 5.298e-05/0.7845, allocations: 8.031 kB / 0.8252 GB, free: 15.48 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002339/0.7868, allocations: 286.1 kB / 0.8255 GB, free: 15.2 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002018/0.7888, allocations: 0.878 MB / 0.8263 GB, free: 14.28 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002675/0.7891, allocations: 196.7 kB / 0.8265 GB, free: 14.07 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002033/0.7893, allocations: 99.89 kB / 0.8266 GB, free: 13.97 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002244/0.7916, allocations: 1.009 MB / 0.8276 GB, free: 12.93 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.678e-05/0.7916, allocations: 4 kB / 0.8276 GB, free: 12.93 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.381e-05/0.7917, allocations: 36 kB / 0.8276 GB, free: 12.89 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.89e-05/0.7918, allocations: 24.88 kB / 0.8277 GB, free: 12.87 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001961/0.7938, allocations: 0.7924 MB / 0.8284 GB, free: 12.08 MB / 0.67 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.006383/0.8002, allocations: 4.089 MB / 0.8324 GB, free: 7.645 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002038/0.8022, allocations: 0.8706 MB / 0.8333 GB, free: 6.77 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008536/0.8031, allocations: 439.2 kB / 0.8337 GB, free: 6.336 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009845/0.8041, allocations: 1.303 MB / 0.835 GB, free: 4.738 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.409e-05/0.8041, allocations: 46.41 kB / 0.835 GB, free: 4.688 MB / 0.67 GB Notification: Performance of pre-optimization done (n=80): time 3.346e-06/0.8041, allocations: 0 / 0.835 GB, free: 4.688 MB / 0.67 GB Notification: Performance of matching and sorting (n=80): time 0.005648/0.8098, allocations: 1.931 MB / 0.8369 GB, free: 2.684 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.397e-05/0.8098, allocations: 60.06 kB / 0.8369 GB, free: 2.613 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001119/0.811, allocations: 0.7615 MB / 0.8377 GB, free: 1.828 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 6.922e-05/0.8111, allocations: 37.7 kB / 0.8377 GB, free: 1.785 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004544/0.8115, allocations: 0.4922 MB / 0.8382 GB, free: 1.285 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002927/0.8118, allocations: 279.9 kB / 0.8385 GB, free: 1.004 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003127/0.8121, allocations: 158.5 kB / 0.8386 GB, free: 0.8438 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001672/0.8123, allocations: 333.9 kB / 0.8389 GB, free: 0.5117 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007486/0.8131, allocations: 317.8 kB / 0.8392 GB, free: 204 kB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3349/1.148, allocations: 386 kB / 0.8396 GB, free: 228.4 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001624/1.15, allocations: 0.6938 MB / 0.8403 GB, free: 228.4 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.686e-06/1.15, allocations: 0 / 0.8403 GB, free: 228.4 MB / 0.67 GB Notification: Performance of matching and sorting (n=93) (initialization): time 0.003429/1.153, allocations: 1.237 MB / 0.8415 GB, free: 228.3 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/1.153, allocations: 6.359 kB / 0.8415 GB, free: 228.3 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/1.153, allocations: 2.156 kB / 0.8415 GB, free: 228.3 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009193/1.154, allocations: 251.4 kB / 0.8417 GB, free: 228.3 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009942/1.155, allocations: 201.7 kB / 0.8419 GB, free: 228.3 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00527/1.16, allocations: 5.223 MB / 0.847 GB, free: 223.9 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007056/1.161, allocations: 85.33 kB / 0.8471 GB, free: 223.9 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001128/1.161, allocations: 58.44 kB / 0.8472 GB, free: 223.9 MB / 0.67 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 (82): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,1,88.9%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003622/1.162, allocations: 223.4 kB / 0.8474 GB, free: 223.7 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001724/1.162, allocations: 101.7 kB / 0.8475 GB, free: 223.7 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003945/1.166, allocations: 1.828 MB / 0.8493 GB, free: 223.2 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.786e-06/1.166, allocations: 9.156 kB / 0.8493 GB, free: 223.2 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/1.166, allocations: 9.172 kB / 0.8493 GB, free: 223.2 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/1.166, allocations: 6.391 kB / 0.8493 GB, free: 223.2 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004584/1.17, allocations: 2.47 MB / 0.8517 GB, free: 222 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/1.17, allocations: 6.375 kB / 0.8517 GB, free: 222 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009473/1.171, allocations: 193.2 kB / 0.8519 GB, free: 222 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007412/1.172, allocations: 261.1 kB / 0.8521 GB, free: 222 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.5e-05/1.172, allocations: 31.66 kB / 0.8522 GB, free: 221.9 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00488/1.177, allocations: 5.225 MB / 0.8573 GB, free: 217.4 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/1.177, allocations: 8.094 kB / 0.8573 GB, free: 217.4 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003716/1.181, allocations: 1.715 MB / 0.859 GB, free: 216.7 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003842/1.181, allocations: 251 kB / 0.8592 GB, free: 216.5 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001143/1.181, allocations: 18.53 kB / 0.8592 GB, free: 216.5 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005335/1.182, allocations: 44.52 kB / 0.8593 GB, free: 216.4 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001496/1.182, allocations: 76.12 kB / 0.8593 GB, free: 216.4 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.946e-05/1.182, allocations: 53.19 kB / 0.8594 GB, free: 216.4 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0006494/1.183, allocations: 0.5353 MB / 0.8599 GB, free: 216.2 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.4e-07/1.183, allocations: 0 / 0.8599 GB, free: 216.2 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.001328/1.184, allocations: 478.5 kB / 0.8604 GB, free: 216.1 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (counterFlowNTU.h_out_A,counterFlowNTU.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 (76): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (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.0009841/1.185, allocations: 0.5665 MB / 0.8609 GB, free: 215.9 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.002707/1.188, allocations: 1.243 MB / 0.8621 GB, free: 215.3 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/1.188, allocations: 0.7812 kB / 0.8621 GB, free: 215.3 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001817/1.19, allocations: 0.9026 MB / 0.863 GB, free: 214.8 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001344/1.191, allocations: 267.2 kB / 0.8633 GB, free: 214.7 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004292/1.195, allocations: 2.281 MB / 0.8655 GB, free: 213.5 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006472/1.196, allocations: 1.067 MB / 0.8665 GB, free: 212.8 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001312/1.197, allocations: 0.6441 MB / 0.8672 GB, free: 212.7 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000469/1.198, allocations: 142.1 kB / 0.8673 GB, free: 212.6 MB / 0.67 GB Notification: Performance of SimCode: time 9.12e-07/1.198, allocations: 3.062 kB / 0.8673 GB, free: 212.6 MB / 0.67 GB Notification: Performance of Templates: time 0.03257/1.23, allocations: 19.93 MB / 0.8868 GB, free: 204.9 MB / 0.67 GB make -j1 -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.makefile (rm -f ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; mkfifo ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe >> ../files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.sim & ./ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.HeatExchangers.Tests.CounterFlowNTU.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches