Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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.001966/0.001966, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.002556/0.002556, allocations: 215.2 kB / 22.25 MB, free: 5.082 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.511/1.511, allocations: 230.6 MB / 256 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] 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.7641/0.7641, allocations: 94.56 MB / 407 MB, free: 9.203 MB / 318.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.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_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_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.002704/0.002704, allocations: 84.27 kB / 0.5554 GB, free: 38.3 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.12, allocations: 73.06 MB / 0.6268 GB, free: 15.98 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.0498/0.1698, allocations: 41.87 MB / 0.6677 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00891/0.1787, allocations: 5.382 MB / 0.6729 GB, free: 0.5586 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001278/0.18, allocations: 63.38 kB / 0.673 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001793/0.1818, allocations: 0.5512 MB / 0.6735 GB, free: 15.94 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.004214/0.186, allocations: 1.386 MB / 0.6749 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002652/0.1886, allocations: 0.9065 MB / 0.6758 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.00335/0.192, allocations: 2.171 MB / 0.6779 GB, free: 11.46 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004537/0.1924, allocations: 161.4 kB / 0.678 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003486/0.1959, allocations: 1.381 MB / 0.6794 GB, free: 9.906 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001609/0.1975, allocations: 0.7933 MB / 0.6802 GB, free: 9.109 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0003064/0.1978, allocations: 104 kB / 0.6803 GB, free: 9.008 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002354/0.2002, allocations: 0.7646 MB / 0.681 GB, free: 8.242 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003954/0.2006, allocations: 266.8 kB / 0.6813 GB, free: 7.98 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001019/0.2016, allocations: 0.6645 MB / 0.6819 GB, free: 7.312 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.00368/0.2053, allocations: 1.856 MB / 0.6837 GB, free: 5.449 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.2053, allocations: 0 / 0.6837 GB, free: 5.449 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.242e-06/0.2053, allocations: 4 kB / 0.6837 GB, free: 5.445 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 4.154e-05/0.2053, allocations: 4 kB / 0.6837 GB, free: 5.441 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.003869/0.2092, allocations: 1.621 MB / 0.6853 GB, free: 3.785 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.2092, allocations: 12.03 kB / 0.6853 GB, free: 3.773 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004612/0.2097, allocations: 152 kB / 0.6855 GB, free: 3.625 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00183/0.2115, allocations: 0.8004 MB / 0.6862 GB, free: 2.797 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.686e-05/0.2116, allocations: 70.12 kB / 0.6863 GB, free: 2.727 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001673/0.2118, allocations: 104 kB / 0.6864 GB, free: 2.625 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002121/0.2139, allocations: 1.085 MB / 0.6875 GB, free: 1.508 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.697e-05/0.2139, allocations: 7.922 kB / 0.6875 GB, free: 1.5 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.506e-05/0.214, allocations: 44 kB / 0.6875 GB, free: 1.457 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.305e-05/0.214, allocations: 20 kB / 0.6875 GB, free: 1.438 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002015/0.2161, allocations: 1.032 MB / 0.6886 GB, free: 416 kB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006997/0.223, allocations: 4.713 MB / 0.6932 GB, free: 11.27 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001972/0.225, allocations: 0.8631 MB / 0.694 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008949/0.2259, allocations: 449.7 kB / 0.6944 GB, free: 9.949 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004185/0.2301, allocations: 1.886 MB / 0.6963 GB, free: 8.039 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.455e-05/0.2301, allocations: 47.16 kB / 0.6963 GB, free: 7.984 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=108): time 2.545e-06/0.2301, allocations: 0 / 0.6963 GB, free: 7.984 MB / 0.5294 GB Notification: Performance of matching and sorting (n=122): time 0.01103/0.2412, allocations: 4.015 MB / 0.7002 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.952e-05/0.2413, allocations: 90.2 kB / 0.7003 GB, free: 3.77 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001122/0.2424, allocations: 0.7639 MB / 0.7011 GB, free: 2.98 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0001078/0.2425, allocations: 45.7 kB / 0.7011 GB, free: 2.93 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004378/0.2429, allocations: 485.5 kB / 0.7016 GB, free: 2.449 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004042/0.2433, allocations: 444.1 kB / 0.702 GB, free: 2.012 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003446/0.2437, allocations: 202.9 kB / 0.7022 GB, free: 1.809 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001832/0.2439, allocations: 349.9 kB / 0.7025 GB, free: 1.461 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001022/0.2449, allocations: 418.4 kB / 0.7029 GB, free: 1.051 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001133/0.246, allocations: 0.5622 MB / 0.7035 GB, free: 452 kB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002212/0.2482, allocations: 1.043 MB / 0.7045 GB, free: 15.34 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.2482, allocations: 0 / 0.7045 GB, free: 15.34 MB / 0.545 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00368/0.2519, allocations: 1.502 MB / 0.706 GB, free: 13.81 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.2519, allocations: 8.062 kB / 0.706 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.2519, allocations: 4 kB / 0.706 GB, free: 13.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001165/0.2531, allocations: 306.6 kB / 0.7063 GB, free: 13.47 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009976/0.2541, allocations: 239.7 kB / 0.7065 GB, free: 13.24 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0111/0.2652, allocations: 11.32 MB / 0.7175 GB, free: 1.008 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009299/0.2661, allocations: 56.08 kB / 0.7176 GB, free: 0.9531 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001615/0.2663, allocations: 47.98 kB / 0.7176 GB, free: 0.9062 MB / 0.545 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.0005857/0.2669, allocations: 253.6 kB / 0.7179 GB, free: 0.6484 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000329/0.2672, allocations: 123.2 kB / 0.718 GB, free: 0.5273 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004388/0.2716, allocations: 1.857 MB / 0.7198 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.651e-05/0.2716, allocations: 15.98 kB / 0.7198 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.581e-05/0.2716, allocations: 7.938 kB / 0.7198 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.565e-05/0.2717, allocations: 3.984 kB / 0.7198 GB, free: 14.6 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006034/0.2777, allocations: 2.847 MB / 0.7226 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.2777, allocations: 0 / 0.7226 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009882/0.2787, allocations: 219.7 kB / 0.7228 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001124/0.2798, allocations: 314.6 kB / 0.7231 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001191/0.2799, allocations: 39.98 kB / 0.7232 GB, free: 11.08 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0112/0.2911, allocations: 11.34 MB / 0.7342 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.2911, allocations: 0 / 0.7342 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005213/0.2963, allocations: 2.183 MB / 0.7364 GB, free: 12.59 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004228/0.2968, allocations: 103.2 kB / 0.7365 GB, free: 12.49 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002652/0.297, allocations: 31.94 kB / 0.7365 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009025/0.2979, allocations: 59.94 kB / 0.7366 GB, free: 12.4 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002965/0.2982, allocations: 108.9 kB / 0.7367 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001255/0.2984, allocations: 43.98 kB / 0.7367 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0008926/0.2992, allocations: 0.5594 MB / 0.7372 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2992, allocations: 0 / 0.7372 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001642/0.3009, allocations: 451.5 kB / 0.7377 GB, free: 11.24 MB / 0.5762 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.0008014/0.3017, allocations: 424.2 kB / 0.7381 GB, free: 10.82 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003952/0.3056, allocations: 2.012 MB / 0.74 GB, free: 8.707 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.3056, allocations: 0 / 0.74 GB, free: 8.707 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002792/0.3084, allocations: 1.558 MB / 0.7416 GB, free: 7.047 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001862/0.3103, allocations: 363.8 kB / 0.7419 GB, free: 6.691 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005587/0.3159, allocations: 2.696 MB / 0.7446 GB, free: 3.949 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009262/0.3168, allocations: 1.1 MB / 0.7456 GB, free: 2.816 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0009398/0.3177, allocations: 242.2 kB / 0.7459 GB, free: 2.59 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003645/0.3181, allocations: 115.4 kB / 0.746 GB, free: 2.477 MB / 0.5762 GB Notification: Performance of SimCode: time 1.002e-06/0.3181, allocations: 0 / 0.746 GB, free: 2.477 MB / 0.5762 GB Notification: Performance of Templates: time 0.3034/0.6215, allocations: 25.64 MB / 0.771 GB, free: 106 MB / 0.5762 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.makefile [Timeout 660] (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) [Timeout 1200] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_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: 7.217491185292602]