Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.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.001527/0.001527, allocations: 78.03 kB / 19 MB, free: 2.871 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.001544/0.001544, allocations: 161.8 kB / 22.25 MB, free: 5.141 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.366/1.366, allocations: 177.2 MB / 202.6 MB, free: 9.277 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.6989/0.6989, allocations: 74.91 MB / 333.9 MB, free: 56 kB / 302.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/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.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|conductionElement.h|pump.m_flow|reservoir.M|reservoir.U_med|reservoir.m_flow_in|reservoir.m_flow_out|reservoir1.M|reservoir1.U_med",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir") translateModel(ThermofluidStream.Boundaries.Tests.Reservoir,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|conductionElement.h|pump.m_flow|reservoir.M|reservoir.U_med|reservoir.m_flow_in|reservoir.m_flow_out|reservoir1.M|reservoir1.U_med",fileNamePrefix="ThermofluidStream_ThermofluidStream.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.002435/0.002435, allocations: 88.06 kB / 495.6 MB, free: 29.92 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1077, allocations: 73.03 MB / 0.5553 GB, free: 15.73 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.Reservoir): time 0.04067/0.1483, allocations: 35.86 MB / 0.5903 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01163/0.16, allocations: 7.993 MB / 0.5981 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00106/0.161, allocations: 51.5 kB / 0.5982 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001485/0.1625, allocations: 476.7 kB / 0.5986 GB, free: 3.215 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003669/0.1662, allocations: 1.332 MB / 0.5999 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00254/0.1687, allocations: 0.9157 MB / 0.6008 GB, free: 0.9609 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002718/0.1714, allocations: 2.008 MB / 0.6028 GB, free: 14.94 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003797/0.1718, allocations: 148.9 kB / 0.6029 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00311/0.1749, allocations: 1.522 MB / 0.6044 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001163/0.1761, allocations: 0.6803 MB / 0.6051 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0002622/0.1764, allocations: 96 kB / 0.6052 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002014/0.1784, allocations: 0.749 MB / 0.6059 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003642/0.1787, allocations: 266.8 kB / 0.6062 GB, free: 11.47 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.000629/0.1794, allocations: 0.5247 MB / 0.6067 GB, free: 10.94 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002697/0.1821, allocations: 1.821 MB / 0.6085 GB, free: 9.113 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1821, allocations: 0 / 0.6085 GB, free: 9.113 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.322e-06/0.1821, allocations: 0 / 0.6085 GB, free: 9.113 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.408e-05/0.1821, allocations: 4 kB / 0.6085 GB, free: 9.109 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 211 * Number of variables: 211 Notification: Performance of Generate backend data structure: time 0.003124/0.1852, allocations: 1.621 MB / 0.61 GB, free: 7.453 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.487e-05/0.1852, allocations: 8.031 kB / 0.6101 GB, free: 7.445 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000748/0.186, allocations: 200 kB / 0.6102 GB, free: 7.25 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001456/0.1874, allocations: 0.7525 MB / 0.611 GB, free: 6.465 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001372/0.1876, allocations: 125.4 kB / 0.6111 GB, free: 6.328 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001405/0.1877, allocations: 95.89 kB / 0.6112 GB, free: 6.234 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001994/0.1897, allocations: 1.378 MB / 0.6125 GB, free: 4.734 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.336e-05/0.1897, allocations: 0 / 0.6125 GB, free: 4.734 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.457e-05/0.1898, allocations: 32 kB / 0.6126 GB, free: 4.703 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.397e-05/0.1899, allocations: 24 kB / 0.6126 GB, free: 4.68 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00177/0.1916, allocations: 0.9056 MB / 0.6135 GB, free: 3.773 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005465/0.1971, allocations: 3.022 MB / 0.6164 GB, free: 0.6875 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002102/0.1992, allocations: 0.8832 MB / 0.6173 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008087/0.2, allocations: 415.2 kB / 0.6177 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00266/0.2027, allocations: 1.34 MB / 0.619 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.504e-05/0.2027, allocations: 51 kB / 0.619 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=99): time 2.996e-06/0.2027, allocations: 0 / 0.619 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of matching and sorting (n=112): time 0.009734/0.2125, allocations: 3.792 MB / 0.6227 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.159e-05/0.2125, allocations: 90.05 kB / 0.6228 GB, free: 9.965 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009675/0.2135, allocations: 0.7357 MB / 0.6236 GB, free: 9.215 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 8.077e-05/0.2136, allocations: 45.7 kB / 0.6236 GB, free: 9.164 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003966/0.214, allocations: 489.2 kB / 0.6241 GB, free: 8.68 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.000357/0.2143, allocations: 412.4 kB / 0.6245 GB, free: 8.273 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003203/0.2146, allocations: 186.9 kB / 0.6246 GB, free: 8.082 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001711/0.2148, allocations: 345.9 kB / 0.625 GB, free: 7.738 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008333/0.2156, allocations: 390.4 kB / 0.6253 GB, free: 7.359 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009936/0.2166, allocations: 0.5492 MB / 0.6259 GB, free: 6.75 MB / 0.5294 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: conductionElement.deltaE_system = $START.conductionElement.deltaE_system (0.0 = $START.conductionElement.deltaE_system) Notification: Performance of analyzeInitialSystem (initialization): time 0.001997/0.2186, allocations: 1.002 MB / 0.6269 GB, free: 5.688 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.616e-06/0.2186, allocations: 64 / 0.6269 GB, free: 5.688 MB / 0.5294 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.003275/0.2219, allocations: 1.463 MB / 0.6283 GB, free: 4.195 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.2219, allocations: 9.406 kB / 0.6283 GB, free: 4.188 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001506/0.2234, allocations: 0.6651 MB / 0.6289 GB, free: 3.512 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001135/0.2246, allocations: 354.5 kB / 0.6293 GB, free: 3.141 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008129/0.2254, allocations: 199.7 kB / 0.6295 GB, free: 2.945 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0107/0.2361, allocations: 11.55 MB / 0.6407 GB, free: 6.586 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008509/0.2369, allocations: 39.97 kB / 0.6408 GB, free: 6.547 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001083/0.237, allocations: 47.98 kB / 0.6408 GB, free: 6.5 MB / 0.545 GB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: conductionElement.deltaE_system = $START.conductionElement.deltaE_system. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (111): * Single equations (assignments): 103 * 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%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%), (1,6,100.0%), (1,4,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004895/0.2375, allocations: 255.8 kB / 0.6411 GB, free: 6.242 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002623/0.2378, allocations: 119.2 kB / 0.6412 GB, free: 6.125 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003661/0.2415, allocations: 1.589 MB / 0.6427 GB, free: 4.488 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.258e-05/0.2415, allocations: 12 kB / 0.6427 GB, free: 4.477 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.2415, allocations: 4 kB / 0.6428 GB, free: 4.473 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/0.2415, allocations: 3.984 kB / 0.6428 GB, free: 4.469 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004873/0.2464, allocations: 2.413 MB / 0.6451 GB, free: 1.988 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.001545/0.2479, allocations: 0.6807 MB / 0.6458 GB, free: 1.289 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008051/0.2487, allocations: 183.8 kB / 0.646 GB, free: 1.109 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001155/0.2499, allocations: 362.7 kB / 0.6463 GB, free: 0.7305 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.655e-05/0.25, allocations: 35.97 kB / 0.6463 GB, free: 0.6953 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01085/0.2608, allocations: 11.54 MB / 0.6576 GB, free: 4.34 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.087e-06/0.2608, allocations: 4.031 kB / 0.6576 GB, free: 4.336 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004592/0.2654, allocations: 2.089 MB / 0.6596 GB, free: 2.191 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002847/0.2657, allocations: 103.3 kB / 0.6597 GB, free: 2.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001873/0.2659, allocations: 27.94 kB / 0.6598 GB, free: 2.062 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007859/0.2667, allocations: 51.95 kB / 0.6598 GB, free: 2.012 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002364/0.2669, allocations: 100.9 kB / 0.6599 GB, free: 1.914 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/0.267, allocations: 44.16 kB / 0.66 GB, free: 1.871 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0007707/0.2678, allocations: 0.5068 MB / 0.6605 GB, free: 1.367 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2678, allocations: 0 / 0.6605 GB, free: 1.367 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001559/0.2693, allocations: 423.7 kB / 0.6609 GB, free: 0.9531 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (reservoir1.M,reservoir1.U_med,pump.m_flow,conductionElement.h,reservoir.M,reservoir.U_med,flowResistance1.inlet.m_flow,flowResistance2.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 (92): * Single equations (assignments): 84 * 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,6,100.0%), (1,4,100.0%), (1,1,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.0007171/0.2701, allocations: 415.6 kB / 0.6613 GB, free: 0.5391 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.003625/0.2737, allocations: 1.973 MB / 0.6632 GB, free: 14.47 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.221e-06/0.2737, allocations: 0 / 0.6632 GB, free: 14.47 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003024/0.2767, allocations: 1.531 MB / 0.6647 GB, free: 12.84 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00238/0.2791, allocations: 345.7 kB / 0.665 GB, free: 12.51 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005149/0.2842, allocations: 2.608 MB / 0.6676 GB, free: 9.863 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006314/0.2849, allocations: 0.4888 MB / 0.668 GB, free: 9.336 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0008462/0.2857, allocations: 204.1 kB / 0.6682 GB, free: 9.133 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003295/0.286, allocations: 100.5 kB / 0.6683 GB, free: 9.035 MB / 0.5762 GB Notification: Performance of SimCode: time 7.62e-07/0.2861, allocations: 0 / 0.6683 GB, free: 9.035 MB / 0.5762 GB Notification: Performance of Templates: time 0.04302/0.3291, allocations: 24.14 MB / 0.6919 GB, free: 1.25 MB / 0.5919 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.sim & ./ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.Reservoir_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.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: 6.3205052968114614]