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.001068/0.001068, allocations: 93.06 kB / 19.65 MB, free: 280 kB / 13.93 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.000984/0.000984, allocations: 169 kB / 23.02 MB, free: 1.551 MB / 18.57 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 0.9418/0.9418, allocations: 177.1 MB / 203.4 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 179] 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.6709/0.6709, allocations: 118.6 MB / 378.6 MB, free: 1.473 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.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: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 483.6 MB, free: 8.273 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.428e-05/2.59e-05, allocations: 3.438 kB / 483.6 MB, free: 8.27 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.007704/0.00773, allocations: 10.93 MB / 494.5 MB, free: 0.8672 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.004037/0.01177, allocations: 2.482 MB / 497 MB, free: 15.13 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009082/0.01267, allocations: 65.22 kB / 497.1 MB, free: 15.09 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006887/0.01336, allocations: 290.4 kB / 497.4 MB, free: 14.93 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002285/0.01565, allocations: 1.07 MB / 498.4 MB, free: 14.21 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001232/0.01688, allocations: 0.5591 MB / 499 MB, free: 13.91 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.002948/0.01983, allocations: 2.396 MB / 0.4897 GB, free: 12.69 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004058/0.02023, allocations: 170.5 kB / 0.4898 GB, free: 12.6 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002457/0.02269, allocations: 1.295 MB / 0.4911 GB, free: 12.09 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009984/0.02369, allocations: 0.6632 MB / 0.4917 GB, free: 11.86 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001935/0.02388, allocations: 100 kB / 0.4918 GB, free: 11.77 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007185/0.0246, allocations: 268.3 kB / 0.4921 GB, free: 11.53 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000219/0.02482, allocations: 280.5 kB / 0.4923 GB, free: 11.3 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000656/0.02548, allocations: 492.1 kB / 0.4928 GB, free: 10.86 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001989/0.02747, allocations: 1.261 MB / 0.494 GB, free: 9.793 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.02747, allocations: 4.641 kB / 0.494 GB, free: 9.789 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.02747, allocations: 0 / 0.494 GB, free: 9.789 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.923e-05/0.02751, allocations: 0 / 0.494 GB, free: 9.789 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 232 * Number of variables: 232 Notification: Performance of Generate backend data structure: time 0.002652/0.03016, allocations: 1.727 MB / 0.4957 GB, free: 8.188 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.0302, allocations: 8.031 kB / 0.4957 GB, free: 8.18 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005745/0.03078, allocations: 306.8 kB / 0.496 GB, free: 7.891 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001226/0.032, allocations: 0.8864 MB / 0.4969 GB, free: 7.102 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.566e-05/0.03205, allocations: 74.38 kB / 0.497 GB, free: 7.031 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001177/0.03217, allocations: 101.8 kB / 0.4971 GB, free: 6.934 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001278/0.03344, allocations: 1.078 MB / 0.4981 GB, free: 5.91 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.03346, allocations: 4.188 kB / 0.4981 GB, free: 5.906 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.17e-05/0.03352, allocations: 47.88 kB / 0.4982 GB, free: 5.859 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.935e-05/0.03354, allocations: 24 kB / 0.4982 GB, free: 5.836 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007656/0.03431, allocations: 0.4983 MB / 0.4987 GB, free: 5.406 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003484/0.03779, allocations: 3.482 MB / 0.5021 GB, free: 1.828 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001294/0.03909, allocations: 0.7874 MB / 0.5029 GB, free: 1.02 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003391/0.03943, allocations: 293 kB / 0.5031 GB, free: 0.7305 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001582/0.04101, allocations: 1.36 MB / 0.5045 GB, free: 15.35 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.04104, allocations: 46.05 kB / 0.5045 GB, free: 15.29 MB / 442.7 MB Notification: Performance of pre-optimization done (n=108): time 2.806e-06/0.04104, allocations: 4 kB / 0.5045 GB, free: 15.29 MB / 442.7 MB Notification: Performance of matching and sorting (n=122): time 0.004855/0.0459, allocations: 3.161 MB / 0.5076 GB, free: 12.02 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.982e-05/0.04594, allocations: 90.27 kB / 0.5077 GB, free: 11.92 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006468/0.04658, allocations: 0.755 MB / 0.5084 GB, free: 11.14 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.152e-05/0.04665, allocations: 49.7 kB / 0.5085 GB, free: 11.08 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002746/0.04692, allocations: 0.5508 MB / 0.509 GB, free: 10.52 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004691/0.04739, allocations: 448.1 kB / 0.5094 GB, free: 10.08 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002013/0.04759, allocations: 204.6 kB / 0.5096 GB, free: 9.875 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.04771, allocations: 0.516 MB / 0.5101 GB, free: 9.352 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003347/0.04805, allocations: 210.4 kB / 0.5103 GB, free: 9.148 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004206/0.04847, allocations: 463.5 kB / 0.5108 GB, free: 8.602 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008125/0.04928, allocations: 0.7618 MB / 0.5115 GB, free: 7.754 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.04928, allocations: 7.938 kB / 0.5115 GB, free: 7.746 MB / 442.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001511/0.0508, allocations: 1.15 MB / 0.5126 GB, free: 6.551 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.05082, allocations: 8 kB / 0.5127 GB, free: 6.543 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.05083, allocations: 4 kB / 0.5127 GB, free: 6.539 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007178/0.05155, allocations: 321.2 kB / 0.513 GB, free: 6.191 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004963/0.05204, allocations: 227.6 kB / 0.5132 GB, free: 5.969 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006354/0.0584, allocations: 14.62 MB / 0.5275 GB, free: 6.371 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005377/0.05893, allocations: 39.98 kB / 0.5275 GB, free: 6.332 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.875e-05/0.059, allocations: 52.09 kB / 0.5275 GB, free: 6.281 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (126): * Single equations (assignments): 118 * 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.0003325/0.05934, allocations: 224.2 kB / 0.5278 GB, free: 6.051 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001772/0.05951, allocations: 163.2 kB / 0.5279 GB, free: 5.891 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001745/0.06126, allocations: 1.45 MB / 0.5293 GB, free: 4.383 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.492e-06/0.06126, allocations: 12 kB / 0.5293 GB, free: 4.371 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.657e-06/0.06127, allocations: 7.938 kB / 0.5294 GB, free: 4.363 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.06128, allocations: 7.969 kB / 0.5294 GB, free: 4.355 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003055/0.06434, allocations: 2.209 MB / 0.5315 GB, free: 2.043 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/0.06434, allocations: 7.984 kB / 0.5315 GB, free: 2.035 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000449/0.06479, allocations: 183.8 kB / 0.5317 GB, free: 1.855 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000688/0.06548, allocations: 341.2 kB / 0.532 GB, free: 1.488 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.521e-05/0.06556, allocations: 31.98 kB / 0.5321 GB, free: 1.457 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00629/0.07185, allocations: 14.62 MB / 0.5463 GB, free: 1.855 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.07185, allocations: 0 / 0.5463 GB, free: 1.855 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001952/0.0738, allocations: 1.577 MB / 0.5479 GB, free: 212 kB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003365/0.07414, allocations: 207 kB / 0.5481 GB, free: 4 kB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.07425, allocations: 36.05 kB / 0.5481 GB, free: 15.96 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003307/0.07458, allocations: 39.97 kB / 0.5481 GB, free: 15.93 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002053/0.07478, allocations: 104.9 kB / 0.5482 GB, free: 15.82 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.431e-05/0.07484, allocations: 43.97 kB / 0.5483 GB, free: 15.78 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004434/0.07528, allocations: 0.5087 MB / 0.5488 GB, free: 15.26 MB / 490.7 MB Notification: Performance of sort global known variables: time 5e-08/0.07528, allocations: 0 / 0.5488 GB, free: 15.26 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0008892/0.07617, allocations: 371.9 kB / 0.5491 GB, free: 14.9 MB / 490.7 MB 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 (97): * Single equations (assignments): 89 * 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.000271/0.07644, allocations: 171.6 kB / 0.5493 GB, free: 14.73 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002044/0.07849, allocations: 2.115 MB / 0.5514 GB, free: 12.47 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.07849, allocations: 0 / 0.5514 GB, free: 12.47 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001271/0.07976, allocations: 1.823 MB / 0.5531 GB, free: 10.5 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001398/0.08116, allocations: 489.2 kB / 0.5536 GB, free: 10.04 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003481/0.08464, allocations: 2.441 MB / 0.556 GB, free: 7.543 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001912/0.08483, allocations: 228.1 kB / 0.5562 GB, free: 7.297 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.0005659/0.0854, allocations: 229.2 kB / 0.5564 GB, free: 7.07 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002124/0.08561, allocations: 116.5 kB / 0.5565 GB, free: 6.953 MB / 490.7 MB Notification: Performance of SimCode: time 1.172e-06/0.08561, allocations: 3.938 kB / 0.5565 GB, free: 6.949 MB / 490.7 MB Notification: Performance of Templates: time 0.03086/0.1165, allocations: 26 MB / 0.5819 GB, free: 13.46 MB / 0.5105 GB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Boundaries.Tests.Reservoir_ref.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.307218579109758]