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.001738/0.001738, allocations: 74.75 kB / 19.01 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.001989/0.001989, allocations: 162.7 kB / 22.26 MB, free: 5.117 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.559/1.559, allocations: 177.2 MB / 202.6 MB, free: 9.246 MB / 190.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.8151/0.8151, allocations: 74.91 MB / 333.9 MB, free: 64 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.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.00282/0.00282, allocations: 93.05 kB / 495.6 MB, free: 29.84 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.138, allocations: 73.03 MB / 0.5553 GB, free: 15.73 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.05103/0.189, allocations: 37.43 MB / 0.5919 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01003/0.1991, allocations: 4.957 MB / 0.5967 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00193/0.201, allocations: 59.44 kB / 0.5968 GB, free: 5.129 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002187/0.2032, allocations: 0.5004 MB / 0.5973 GB, free: 4.625 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.004899/0.2081, allocations: 1.367 MB / 0.5986 GB, free: 3.25 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003237/0.2113, allocations: 0.8998 MB / 0.5995 GB, free: 2.352 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.004184/0.2155, allocations: 2.163 MB / 0.6016 GB, free: 184 kB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006201/0.2161, allocations: 161.4 kB / 0.6017 GB, free: 12 kB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005032/0.2212, allocations: 1.728 MB / 0.6034 GB, free: 14.28 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001631/0.2228, allocations: 0.727 MB / 0.6041 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0003782/0.2232, allocations: 100 kB / 0.6042 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002479/0.2256, allocations: 0.671 MB / 0.6049 GB, free: 12.78 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0004761/0.2261, allocations: 270.8 kB / 0.6052 GB, free: 12.51 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001062/0.2272, allocations: 0.5442 MB / 0.6057 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.00428/0.2315, allocations: 1.852 MB / 0.6075 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2315, allocations: 0 / 0.6075 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.333e-06/0.2315, allocations: 0 / 0.6075 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 3.701e-05/0.2315, allocations: 4 kB / 0.6075 GB, free: 10.1 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.00407/0.2356, allocations: 1.621 MB / 0.6091 GB, free: 8.445 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.2356, allocations: 8.031 kB / 0.6091 GB, free: 8.438 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007449/0.2364, allocations: 184 kB / 0.6093 GB, free: 8.258 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00214/0.2385, allocations: 0.7886 MB / 0.61 GB, free: 7.441 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.08e-05/0.2386, allocations: 74.12 kB / 0.6101 GB, free: 7.367 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001998/0.2388, allocations: 99.95 kB / 0.6102 GB, free: 7.27 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002379/0.2412, allocations: 1.324 MB / 0.6115 GB, free: 5.852 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.735e-05/0.2412, allocations: 0 / 0.6115 GB, free: 5.852 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001176/0.2413, allocations: 36 kB / 0.6115 GB, free: 5.816 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.38e-05/0.2413, allocations: 24 kB / 0.6115 GB, free: 5.793 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00211/0.2434, allocations: 1.016 MB / 0.6125 GB, free: 4.777 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006375/0.2498, allocations: 2.903 MB / 0.6154 GB, free: 1.812 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002118/0.2519, allocations: 0.868 MB / 0.6162 GB, free: 0.9297 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009838/0.2529, allocations: 434.9 kB / 0.6166 GB, free: 0.5039 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003612/0.2565, allocations: 1.334 MB / 0.6179 GB, free: 15.15 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.023e-05/0.2566, allocations: 51.2 kB / 0.618 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=108): time 3.907e-06/0.2566, allocations: 0 / 0.618 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of matching and sorting (n=122): time 0.01219/0.2688, allocations: 4.02 MB / 0.6219 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.317e-05/0.2689, allocations: 90.27 kB / 0.622 GB, free: 10.87 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001128/0.27, allocations: 0.7082 MB / 0.6227 GB, free: 10.15 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0001949/0.2702, allocations: 45.7 kB / 0.6227 GB, free: 10.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004429/0.2706, allocations: 489.4 kB / 0.6232 GB, free: 9.613 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004862/0.2711, allocations: 448.1 kB / 0.6236 GB, free: 9.172 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000353/0.2715, allocations: 194.9 kB / 0.6238 GB, free: 8.977 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001868/0.2716, allocations: 357.9 kB / 0.6242 GB, free: 8.621 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001034/0.2727, allocations: 398.4 kB / 0.6245 GB, free: 8.23 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001199/0.2739, allocations: 0.5726 MB / 0.6251 GB, free: 7.602 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002226/0.2761, allocations: 1.05 MB / 0.6261 GB, free: 6.492 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/0.2761, allocations: 4 kB / 0.6261 GB, free: 6.488 MB / 0.5294 GB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003852/0.28, allocations: 1.479 MB / 0.6276 GB, free: 4.973 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.912e-05/0.28, allocations: 8 kB / 0.6276 GB, free: 4.965 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.28, allocations: 4 kB / 0.6276 GB, free: 4.961 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001208/0.2812, allocations: 307 kB / 0.6279 GB, free: 4.637 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00105/0.2823, allocations: 231.7 kB / 0.6281 GB, free: 4.41 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01125/0.2935, allocations: 11.09 MB / 0.6389 GB, free: 8.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001031/0.2945, allocations: 52.16 kB / 0.639 GB, free: 8.449 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001937/0.2947, allocations: 51.92 kB / 0.639 GB, free: 8.398 MB / 0.545 GB 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 (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.0006004/0.2953, allocations: 253.6 kB / 0.6393 GB, free: 8.141 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003284/0.2957, allocations: 123.2 kB / 0.6394 GB, free: 8.02 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004238/0.2999, allocations: 1.792 MB / 0.6411 GB, free: 6.18 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.953e-05/0.2999, allocations: 12 kB / 0.6411 GB, free: 6.168 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.712e-05/0.2999, allocations: 4 kB / 0.6412 GB, free: 6.164 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.729e-05/0.3, allocations: 7.984 kB / 0.6412 GB, free: 6.156 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005874/0.3058, allocations: 2.455 MB / 0.6436 GB, free: 3.629 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/0.3058, allocations: 0 / 0.6436 GB, free: 3.629 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.3069, allocations: 195.8 kB / 0.6437 GB, free: 3.438 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001206/0.3081, allocations: 322.6 kB / 0.6441 GB, free: 3.098 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001645/0.3082, allocations: 35.97 kB / 0.6441 GB, free: 3.062 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01134/0.3196, allocations: 11.11 MB / 0.6549 GB, free: 7.137 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.3196, allocations: 0 / 0.6549 GB, free: 7.137 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004995/0.3246, allocations: 2.106 MB / 0.657 GB, free: 4.977 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003553/0.3249, allocations: 99.23 kB / 0.6571 GB, free: 4.879 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002347/0.3252, allocations: 31.88 kB / 0.6571 GB, free: 4.848 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008682/0.326, allocations: 51.95 kB / 0.6572 GB, free: 4.797 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003055/0.3263, allocations: 112.9 kB / 0.6573 GB, free: 4.688 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000121/0.3264, allocations: 43.98 kB / 0.6573 GB, free: 4.645 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0008234/0.3273, allocations: 0.5068 MB / 0.6578 GB, free: 4.145 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3273, allocations: 0 / 0.6578 GB, free: 4.145 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001845/0.3291, allocations: 403.7 kB / 0.6582 GB, free: 3.75 MB / 0.5606 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 (98): * Single equations (assignments): 90 * 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.0007919/0.3299, allocations: 369.5 kB / 0.6585 GB, free: 3.383 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.004366/0.3343, allocations: 1.985 MB / 0.6605 GB, free: 1.297 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.237e-05/0.3343, allocations: 4 kB / 0.6605 GB, free: 1.293 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.003054/0.3373, allocations: 1.539 MB / 0.662 GB, free: 15.65 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002063/0.3394, allocations: 306.9 kB / 0.6623 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006096/0.3455, allocations: 2.642 MB / 0.6649 GB, free: 12.67 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000667/0.3462, allocations: 0.505 MB / 0.6654 GB, free: 12.12 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0009952/0.3472, allocations: 214.6 kB / 0.6656 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003168/0.3475, allocations: 104.5 kB / 0.6657 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of SimCode: time 1.243e-06/0.3475, allocations: 0 / 0.6657 GB, free: 11.82 MB / 0.5762 GB Notification: Performance of Templates: time 0.05032/0.3978, allocations: 23.15 MB / 0.6883 GB, free: 5.023 MB / 0.5919 GB " [Timeout remaining time 660] 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.417966431006789]