Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001478/0.001478, allocations: 102.1 kB / 19.7 MB, free: 2.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001625/0.001625, allocations: 218.8 kB / 23.01 MB, free: 4.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.359/1.359, allocations: 230.6 MB / 256.8 MB, free: 8.051 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.7394/0.7394, allocations: 100.3 MB / 413.5 MB, free: 3.703 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") translateModel(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir") [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002367/0.002367, allocations: 87.45 kB / 0.5645 GB, free: 35.58 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1124, allocations: 74.47 MB / 0.6372 GB, free: 7.18 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.04249/0.1549, allocations: 41.85 MB / 0.6781 GB, free: 13.17 MB / 0.5138 GB Notification: Performance of NFInst.instExpressions: time 0.007656/0.1626, allocations: 5.401 MB / 0.6834 GB, free: 7.754 MB / 0.5138 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001005/0.1636, allocations: 63.44 kB / 0.6834 GB, free: 7.691 MB / 0.5138 GB Notification: Performance of NFTyping.typeComponents: time 0.001343/0.1649, allocations: 0.551 MB / 0.684 GB, free: 7.137 MB / 0.5138 GB Notification: Performance of NFTyping.typeBindings: time 0.003138/0.1681, allocations: 1.386 MB / 0.6853 GB, free: 5.742 MB / 0.5138 GB Notification: Performance of NFTyping.typeClassSections: time 0.002108/0.1702, allocations: 0.898 MB / 0.6862 GB, free: 4.844 MB / 0.5138 GB Notification: Performance of NFFlatten.flatten: time 0.002523/0.1727, allocations: 2.171 MB / 0.6883 GB, free: 2.664 MB / 0.5138 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003257/0.173, allocations: 161.3 kB / 0.6885 GB, free: 2.488 MB / 0.5138 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002534/0.1756, allocations: 1.381 MB / 0.6898 GB, free: 1.102 MB / 0.5138 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000959/0.1765, allocations: 0.7934 MB / 0.6906 GB, free: 312 kB / 0.5138 GB Notification: Performance of NFPackage.collectConstants: time 0.0001407/0.1767, allocations: 100 kB / 0.6907 GB, free: 212 kB / 0.5138 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001826/0.1785, allocations: 0.7724 MB / 0.6914 GB, free: 15.43 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002677/0.1787, allocations: 274.7 kB / 0.6917 GB, free: 15.16 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0006047/0.1794, allocations: 0.6529 MB / 0.6923 GB, free: 14.51 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.002414/0.1818, allocations: 1.864 MB / 0.6942 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1818, allocations: 0 / 0.6942 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.042e-06/0.1818, allocations: 0 / 0.6942 GB, free: 12.64 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.232e-05/0.1818, allocations: 0 / 0.6942 GB, free: 12.64 MB / 0.5294 GB 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.00289/0.1847, allocations: 1.625 MB / 0.6957 GB, free: 10.97 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.274e-05/0.1847, allocations: 8.031 kB / 0.6958 GB, free: 10.96 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000362/0.1851, allocations: 160 kB / 0.6959 GB, free: 10.81 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001448/0.1865, allocations: 0.7964 MB / 0.6967 GB, free: 9.984 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.016e-05/0.1866, allocations: 70.12 kB / 0.6967 GB, free: 9.918 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001453/0.1867, allocations: 99.98 kB / 0.6968 GB, free: 9.82 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001718/0.1884, allocations: 1.085 MB / 0.6979 GB, free: 8.699 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.451e-05/0.1885, allocations: 7.984 kB / 0.6979 GB, free: 8.691 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.953e-05/0.1885, allocations: 39.94 kB / 0.698 GB, free: 8.652 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.516e-05/0.1886, allocations: 24 kB / 0.698 GB, free: 8.629 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001742/0.1903, allocations: 1.036 MB / 0.699 GB, free: 7.594 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005697/0.196, allocations: 4.713 MB / 0.7036 GB, free: 2.461 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001717/0.1977, allocations: 0.867 MB / 0.7044 GB, free: 1.578 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007753/0.1985, allocations: 455.7 kB / 0.7049 GB, free: 1.133 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003511/0.202, allocations: 1.882 MB / 0.7067 GB, free: 15.23 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.201e-05/0.2021, allocations: 51.22 kB / 0.7068 GB, free: 15.17 MB / 0.545 GB Notification: Performance of pre-optimization done (n=108): time 2.204e-06/0.2021, allocations: 0 / 0.7068 GB, free: 15.17 MB / 0.545 GB Notification: Performance of matching and sorting (n=122): time 0.009439/0.2115, allocations: 4.012 MB / 0.7107 GB, free: 11.06 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.605e-05/0.2116, allocations: 94.14 kB / 0.7108 GB, free: 10.95 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009236/0.2125, allocations: 0.7639 MB / 0.7115 GB, free: 10.16 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 8.273e-05/0.2126, allocations: 49.7 kB / 0.7116 GB, free: 10.11 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003685/0.2129, allocations: 489.4 kB / 0.712 GB, free: 9.621 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003326/0.2133, allocations: 444.1 kB / 0.7124 GB, free: 9.184 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002881/0.2136, allocations: 195 kB / 0.7126 GB, free: 8.988 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001548/0.2137, allocations: 353.8 kB / 0.713 GB, free: 8.637 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008581/0.2146, allocations: 418.4 kB / 0.7134 GB, free: 8.227 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009725/0.2155, allocations: 0.5584 MB / 0.7139 GB, free: 7.621 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001904/0.2174, allocations: 1.043 MB / 0.7149 GB, free: 6.535 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.2174, allocations: 7.938 kB / 0.7149 GB, free: 6.527 MB / 0.545 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003144/0.2206, allocations: 1.494 MB / 0.7164 GB, free: 5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.2206, allocations: 4 kB / 0.7164 GB, free: 4.996 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.2206, allocations: 4 kB / 0.7164 GB, free: 4.992 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001001/0.2216, allocations: 319 kB / 0.7167 GB, free: 4.656 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008869/0.2225, allocations: 231.7 kB / 0.7169 GB, free: 4.43 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009479/0.232, allocations: 11.31 MB / 0.728 GB, free: 8.199 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007589/0.2327, allocations: 47.97 kB / 0.728 GB, free: 8.152 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.719e-05/0.2328, allocations: 47.98 kB / 0.7281 GB, free: 8.105 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (124): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0004592/0.2333, allocations: 261.6 kB / 0.7283 GB, free: 7.84 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002238/0.2335, allocations: 119.2 kB / 0.7284 GB, free: 7.723 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003747/0.2373, allocations: 1.86 MB / 0.7303 GB, free: 5.816 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.294e-05/0.2373, allocations: 12 kB / 0.7303 GB, free: 5.805 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.2373, allocations: 7.938 kB / 0.7303 GB, free: 5.797 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.941e-05/0.2373, allocations: 11.97 kB / 0.7303 GB, free: 5.785 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005013/0.2423, allocations: 2.851 MB / 0.7331 GB, free: 2.836 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.503e-06/0.2423, allocations: 4 kB / 0.7331 GB, free: 2.832 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008762/0.2432, allocations: 211.7 kB / 0.7333 GB, free: 2.625 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009782/0.2442, allocations: 318.7 kB / 0.7336 GB, free: 2.289 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.51e-05/0.2443, allocations: 43.92 kB / 0.7336 GB, free: 2.246 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009515/0.2538, allocations: 11.33 MB / 0.7447 GB, free: 6 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.2538, allocations: 0 / 0.7447 GB, free: 6 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004264/0.2581, allocations: 2.172 MB / 0.7468 GB, free: 3.773 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002598/0.2583, allocations: 103.2 kB / 0.7469 GB, free: 3.672 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001533/0.2585, allocations: 36.12 kB / 0.7469 GB, free: 3.637 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007032/0.2592, allocations: 55.95 kB / 0.747 GB, free: 3.582 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002272/0.2594, allocations: 112.8 kB / 0.7471 GB, free: 3.473 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.647e-05/0.2595, allocations: 43.97 kB / 0.7471 GB, free: 3.43 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.0007421/0.2602, allocations: 0.5633 MB / 0.7477 GB, free: 2.855 MB / 0.5763 GB Notification: Performance of sort global known variables: time 9e-08/0.2602, allocations: 0 / 0.7477 GB, free: 2.855 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.001323/0.2615, allocations: 455.5 kB / 0.7481 GB, free: 2.41 MB / 0.5763 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 (104): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0006281/0.2622, allocations: 423.9 kB / 0.7485 GB, free: 1.996 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.2482/0.5104, allocations: 2.014 MB / 0.7505 GB, free: 107.1 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.144e-05/0.5104, allocations: 0.7188 kB / 0.7505 GB, free: 107.1 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.003094/0.5135, allocations: 1.55 MB / 0.752 GB, free: 106.2 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001938/0.5154, allocations: 351.6 kB / 0.7524 GB, free: 106.2 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005444/0.5209, allocations: 2.744 MB / 0.755 GB, free: 105.3 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007166/0.5216, allocations: 1.101 MB / 0.7561 GB, free: 104.5 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004175/0.522, allocations: 132.7 kB / 0.7562 GB, free: 104.5 MB / 0.5763 GB Notification: Performance of SimCode: time 1.112e-06/0.522, allocations: 0 / 0.7562 GB, free: 104.5 MB / 0.5763 GB Notification: Performance of Templates: time 0.04485/0.5668, allocations: 55.88 MB / 0.8108 GB, free: 64.08 MB / 0.5763 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.60119865485467]