Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.4.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|reservoir.M|reservoir.U_med|reservoir.m_flow_fore|reservoir.m_flow_rear|reservoir2.M|reservoir2.U_med|reservoir2.m_flow_in|reservoir2.m_flow_out",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|reservoir.M|reservoir.U_med|reservoir.m_flow_fore|reservoir.m_flow_rear|reservoir2.M|reservoir2.U_med|reservoir2.m_flow_in|reservoir2.m_flow_out",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001721/0.001721, allocations: 177.9 kB / 15.43 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 225.7 MB / 241.9 MB, free: 392 kB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007799/0.00078, allocations: 83.09 kB / 293.1 MB, free: 12.9 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo): time 0.6814/0.6814, allocations: 91.65 MB / 435.8 MB, free: 23.58 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003303/0.0003305, allocations: 11.98 kB / 0.5038 GB, free: 8.289 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3207, allocations: 69.28 MB / 0.5714 GB, free: 45.56 MB / 442.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.03116/0.3519, allocations: 50.49 MB / 0.6208 GB, free: 5.723 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.006721/0.3587, allocations: 7.868 MB / 0.6284 GB, free: 14.68 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001008/0.3597, allocations: 14.47 kB / 0.6285 GB, free: 14.67 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001238/0.361, allocations: 473.6 kB / 0.6289 GB, free: 14.43 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00307/0.364, allocations: 1.207 MB / 0.6301 GB, free: 13.7 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002129/0.3662, allocations: 0.7714 MB / 0.6308 GB, free: 13.27 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.002937/0.3691, allocations: 2.602 MB / 0.6334 GB, free: 12.25 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004806/0.3696, allocations: 237.2 kB / 0.6336 GB, free: 12.14 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00236/0.372, allocations: 0.9111 MB / 0.6345 GB, free: 11.76 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001507/0.3735, allocations: 0.7047 MB / 0.6352 GB, free: 11.46 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003371/0.3739, allocations: 45.75 kB / 0.6352 GB, free: 11.46 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002735/0.3766, allocations: 0.756 MB / 0.636 GB, free: 11.24 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004614/0.3771, allocations: 194.9 kB / 0.6362 GB, free: 11.12 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001369/0.3785, allocations: 0.5738 MB / 0.6367 GB, free: 10.79 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004064/0.3826, allocations: 1.671 MB / 0.6383 GB, free: 10.25 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/0.3826, allocations: 4.875 kB / 0.6383 GB, free: 10.25 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.865e-06/0.3826, allocations: 4 kB / 0.6384 GB, free: 10.25 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.634e-05/0.3827, allocations: 0 / 0.6384 GB, free: 10.25 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.003546/0.3863, allocations: 1.303 MB / 0.6396 GB, free: 9.391 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.3863, allocations: 12.2 kB / 0.6396 GB, free: 9.387 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005085/0.3868, allocations: 129.5 kB / 0.6398 GB, free: 9.328 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001168/0.388, allocations: 0.6087 MB / 0.6404 GB, free: 8.887 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.739e-05/0.3881, allocations: 71.44 kB / 0.6404 GB, free: 8.855 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001966/0.3883, allocations: 102.1 kB / 0.6405 GB, free: 8.816 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002232/0.3905, allocations: 1.076 MB / 0.6416 GB, free: 8.352 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.414e-05/0.3906, allocations: 4.734 kB / 0.6416 GB, free: 8.348 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001032/0.3907, allocations: 37.72 kB / 0.6416 GB, free: 8.32 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.187e-05/0.3907, allocations: 22.34 kB / 0.6416 GB, free: 8.32 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001939/0.3927, allocations: 1.032 MB / 0.6426 GB, free: 7.969 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00649/0.3992, allocations: 4.812 MB / 0.6473 GB, free: 4.102 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002207/0.4014, allocations: 1.146 MB / 0.6485 GB, free: 3.57 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00098/0.4024, allocations: 0.5489 MB / 0.649 GB, free: 3.34 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004611/0.407, allocations: 3.187 MB / 0.6521 GB, free: 0.7227 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.4071, allocations: 49.61 kB / 0.6522 GB, free: 0.6719 MB / 458.7 MB Notification: Performance of pre-optimization done (n=117): time 3.297e-06/0.4071, allocations: 0 / 0.6522 GB, free: 0.6719 MB / 458.7 MB Notification: Performance of matching and sorting (n=131): time 0.01105/0.4182, allocations: 4.789 MB / 0.6568 GB, free: 13.77 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.628e-05/0.4183, allocations: 90.42 kB / 0.6569 GB, free: 13.66 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007274/0.419, allocations: 0.5278 MB / 0.6574 GB, free: 13.34 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001093/0.4191, allocations: 51.17 kB / 0.6575 GB, free: 13.29 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002565/0.4194, allocations: 384.6 kB / 0.6578 GB, free: 12.95 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003506/0.4198, allocations: 449 kB / 0.6583 GB, free: 12.56 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.202e-05/0.4198, allocations: 24.25 kB / 0.6583 GB, free: 12.54 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.42, allocations: 394.7 kB / 0.6587 GB, free: 12.16 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001028/0.421, allocations: 486.7 kB / 0.6591 GB, free: 11.93 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001122/0.4222, allocations: 0.618 MB / 0.6597 GB, free: 11.55 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002094/0.4243, allocations: 1.157 MB / 0.6609 GB, free: 10.61 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.4243, allocations: 3.938 kB / 0.6609 GB, free: 10.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.003396/0.4277, allocations: 1.613 MB / 0.6625 GB, free: 8.953 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.4277, allocations: 4 kB / 0.6625 GB, free: 8.949 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/0.4278, allocations: 4 kB / 0.6625 GB, free: 8.945 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001085/0.4289, allocations: 310.9 kB / 0.6628 GB, free: 8.617 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009441/0.4298, allocations: 239.7 kB / 0.663 GB, free: 8.383 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008165/0.438, allocations: 11.24 MB / 0.674 GB, free: 12.07 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001093/0.4391, allocations: 95.91 kB / 0.6741 GB, free: 11.98 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002053/0.4393, allocations: 47.98 kB / 0.6741 GB, free: 11.93 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (127): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,2,100.0%), (1,2,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005925/0.4399, allocations: 241.6 kB / 0.6743 GB, free: 11.69 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002645/0.4402, allocations: 98.81 kB / 0.6744 GB, free: 11.59 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004099/0.4443, allocations: 1.853 MB / 0.6762 GB, free: 9.703 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.706e-05/0.4444, allocations: 16.17 kB / 0.6762 GB, free: 9.688 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.656e-05/0.4444, allocations: 8 kB / 0.6763 GB, free: 9.68 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.588e-05/0.4444, allocations: 7.969 kB / 0.6763 GB, free: 9.672 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005988/0.4504, allocations: 3.17 MB / 0.6794 GB, free: 6.402 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.804e-06/0.4504, allocations: 128 / 0.6794 GB, free: 6.402 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009857/0.4514, allocations: 255.7 kB / 0.6796 GB, free: 6.152 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001088/0.4525, allocations: 322.4 kB / 0.6799 GB, free: 5.812 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001246/0.4527, allocations: 43.97 kB / 0.68 GB, free: 5.77 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008541/0.4612, allocations: 11.25 MB / 0.6909 GB, free: 9.461 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.4613, allocations: 4.031 kB / 0.6909 GB, free: 9.457 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005321/0.4666, allocations: 2.515 MB / 0.6934 GB, free: 6.891 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000466/0.4671, allocations: 163.8 kB / 0.6936 GB, free: 6.711 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002926/0.4674, allocations: 28 kB / 0.6936 GB, free: 6.684 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00112/0.4686, allocations: 99.84 kB / 0.6937 GB, free: 6.586 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003167/0.4689, allocations: 121.2 kB / 0.6938 GB, free: 6.469 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001454/0.4691, allocations: 51.97 kB / 0.6938 GB, free: 6.418 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0005147/0.4696, allocations: 375 kB / 0.6942 GB, free: 6.055 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.11e-07/0.4696, allocations: 0 / 0.6942 GB, free: 6.055 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002103/0.4717, allocations: 455.8 kB / 0.6946 GB, free: 5.609 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (reservoir.M,reservoir.U_med,flowResistance1.rear.m_flow,flowResistance2.rear.m_flow,reservoir2.M,reservoir2.U_med,flowResistance4.inlet.m_flow,flowResistance5.inlet.m_flow) * 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 (122): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,2), (1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001005/0.4727, allocations: 447.2 kB / 0.6951 GB, free: 5.16 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004282/0.477, allocations: 2.333 MB / 0.6973 GB, free: 2.711 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/0.4771, allocations: 0 / 0.6973 GB, free: 2.711 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002818/0.4799, allocations: 1.794 MB / 0.6991 GB, free: 0.7969 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001987/0.4819, allocations: 288.3 kB / 0.6994 GB, free: 0.5195 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004779/0.4867, allocations: 3.104 MB / 0.7024 GB, free: 13.38 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006967/0.4874, allocations: 1.053 MB / 0.7034 GB, free: 12.29 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001001/0.4884, allocations: 219.3 kB / 0.7036 GB, free: 12.07 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003508/0.4888, allocations: 111.4 kB / 0.7037 GB, free: 11.96 MB / 0.5105 GB Notification: Performance of SimCode: time 5.41e-07/0.4888, allocations: 0 / 0.7037 GB, free: 11.96 MB / 0.5105 GB Notification: Performance of Templates: time 0.0379/0.5267, allocations: 22.97 MB / 0.7262 GB, free: 5.148 MB / 0.5261 GB make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile (rm -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_ref.mat","../files/ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches