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.001279/0.001279, allocations: 80.94 kB / 19.94 MB, free: 4.547 MB / 18.57 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.001463/0.001463, allocations: 177.3 kB / 23.36 MB, free: 1.133 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.8885/0.8885, allocations: 177.1 MB / 203.8 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 0.6358/0.6358, allocations: 118.7 MB / 378.9 MB, free: 1.375 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.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: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 430.8 MB, free: 13.37 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.258e-05/1.391e-05, allocations: 2.312 kB / 430.8 MB, free: 13.37 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.01163/0.01165, allocations: 10.83 MB / 441.7 MB, free: 2.477 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1428/0.1545, allocations: 2.556 MB / 444.2 MB, free: 16.34 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009741/0.1555, allocations: 65.19 kB / 444.3 MB, free: 16.34 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005668/0.156, allocations: 280.5 kB / 444.5 MB, free: 16.34 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001573/0.1576, allocations: 1.07 MB / 445.6 MB, free: 16.13 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008348/0.1584, allocations: 0.5615 MB / 446.2 MB, free: 16.11 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001698/0.1601, allocations: 2.398 MB / 448.6 MB, free: 15.41 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002713/0.1604, allocations: 178.8 kB / 448.8 MB, free: 15.36 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001483/0.1619, allocations: 1.291 MB / 450 MB, free: 15.22 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007234/0.1626, allocations: 0.6415 MB / 450.7 MB, free: 15.14 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001534/0.1628, allocations: 98.28 kB / 450.8 MB, free: 15.14 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004512/0.1632, allocations: 261.9 kB / 451 MB, free: 15.13 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001619/0.1634, allocations: 283.4 kB / 451.3 MB, free: 15.07 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004141/0.1638, allocations: 496.8 kB / 451.8 MB, free: 15 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001051/0.1648, allocations: 1.256 MB / 453.1 MB, free: 14.8 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1648, allocations: 3.938 kB / 453.1 MB, free: 14.8 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1648, allocations: 0 / 453.1 MB, free: 14.8 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.741e-05/0.1649, allocations: 0 / 453.1 MB, free: 14.8 MB / 410.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.001568/0.1664, allocations: 1.596 MB / 454.7 MB, free: 14.03 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.693e-05/0.1665, allocations: 9.562 kB / 454.7 MB, free: 14.03 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004226/0.1669, allocations: 264.4 kB / 454.9 MB, free: 14 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008493/0.1677, allocations: 0.7843 MB / 455.7 MB, free: 13.65 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.64e-05/0.1678, allocations: 72.12 kB / 455.8 MB, free: 13.65 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.959e-05/0.1679, allocations: 109.7 kB / 455.9 MB, free: 13.65 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006615/0.1685, allocations: 0.99 MB / 456.9 MB, free: 13.18 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.1685, allocations: 6.5 kB / 456.9 MB, free: 13.18 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.949e-05/0.1686, allocations: 46.91 kB / 456.9 MB, free: 13.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.1686, allocations: 23.03 kB / 456.9 MB, free: 13.18 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003818/0.169, allocations: 371.1 kB / 457.3 MB, free: 13.15 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002127/0.1711, allocations: 2.449 MB / 459.8 MB, free: 11.49 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006424/0.1717, allocations: 0.6508 MB / 460.4 MB, free: 11.27 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000184/0.1719, allocations: 216.5 kB / 460.6 MB, free: 11.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001109/0.173, allocations: 1.018 MB / 461.6 MB, free: 10.38 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.011e-05/0.1731, allocations: 48.41 kB / 461.7 MB, free: 10.32 MB / 410.7 MB Notification: Performance of pre-optimization done (n=108): time 2.094e-06/0.1731, allocations: 0 / 461.7 MB, free: 10.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.003525/0.1766, allocations: 2.586 MB / 464.3 MB, free: 7.762 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.811e-05/0.1766, allocations: 90.27 kB / 464.4 MB, free: 7.656 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000309/0.1769, allocations: 0.6853 MB / 465 MB, free: 7.074 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.581e-05/0.177, allocations: 53.7 kB / 465.1 MB, free: 7.016 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.558e-05/0.1771, allocations: 376.6 kB / 465.5 MB, free: 6.688 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000126/0.1772, allocations: 449.4 kB / 465.9 MB, free: 6.273 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001522/0.1773, allocations: 194.4 kB / 466.1 MB, free: 6.102 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.56e-05/0.1774, allocations: 361 kB / 466.4 MB, free: 5.766 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001504/0.1775, allocations: 133.6 kB / 466.6 MB, free: 5.641 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001945/0.1777, allocations: 328.6 kB / 466.9 MB, free: 5.273 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004191/0.1781, allocations: 0.5955 MB / 467.5 MB, free: 4.656 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.1781, allocations: 4 kB / 467.5 MB, free: 4.652 MB / 410.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.0008119/0.1789, allocations: 0.8004 MB / 468.3 MB, free: 3.867 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.179, allocations: 12.47 kB / 468.3 MB, free: 3.855 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.179, allocations: 4 kB / 468.3 MB, free: 3.852 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005011/0.1795, allocations: 289.5 kB / 468.6 MB, free: 3.559 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000401/0.1799, allocations: 218.5 kB / 468.8 MB, free: 3.359 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003587/0.1835, allocations: 9.852 MB / 478.7 MB, free: 8.965 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003045/0.1838, allocations: 39.98 kB / 478.7 MB, free: 8.926 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.246e-05/0.1838, allocations: 43.92 kB / 478.7 MB, free: 8.883 MB / 426.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.0002021/0.184, allocations: 176.5 kB / 478.9 MB, free: 8.699 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001397/0.1842, allocations: 115.9 kB / 479 MB, free: 8.586 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001267/0.1854, allocations: 1.175 MB / 480.2 MB, free: 7.477 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.223e-06/0.1854, allocations: 12 kB / 480.2 MB, free: 7.465 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1854, allocations: 4 kB / 480.2 MB, free: 7.461 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.1854, allocations: 7.969 kB / 480.2 MB, free: 7.453 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001729/0.1872, allocations: 1.539 MB / 481.8 MB, free: 5.953 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.1872, allocations: 4 kB / 481.8 MB, free: 5.949 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003849/0.1876, allocations: 179.9 kB / 481.9 MB, free: 5.773 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005503/0.1881, allocations: 304 kB / 482.2 MB, free: 5.461 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.812e-05/0.1882, allocations: 31.98 kB / 482.3 MB, free: 5.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004036/0.1922, allocations: 9.859 MB / 492.1 MB, free: 10.96 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1922, allocations: 3.938 kB / 492.1 MB, free: 10.96 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.1934, allocations: 1.132 MB / 493.3 MB, free: 9.809 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002148/0.1936, allocations: 136.5 kB / 493.4 MB, free: 9.676 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.062e-05/0.1937, allocations: 31.94 kB / 493.4 MB, free: 9.645 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003111/0.194, allocations: 31.98 kB / 493.5 MB, free: 9.613 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000144/0.1942, allocations: 109 kB / 493.6 MB, free: 9.508 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.173e-05/0.1942, allocations: 27.98 kB / 493.6 MB, free: 9.48 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002515/0.1944, allocations: 373.1 kB / 494 MB, free: 9.145 MB / 442.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1944, allocations: 0 / 494 MB, free: 9.145 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007075/0.1952, allocations: 367.9 kB / 494.3 MB, free: 8.785 MB / 442.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.0001934/0.1953, allocations: 157.1 kB / 494.5 MB, free: 8.637 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001143/0.1965, allocations: 1.541 MB / 496 MB, free: 7.008 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.567e-05/0.1965, allocations: 8 kB / 496 MB, free: 7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008652/0.1974, allocations: 1.316 MB / 497.3 MB, free: 5.602 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00108/0.1985, allocations: 497.9 kB / 497.8 MB, free: 5.141 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002723/0.2012, allocations: 2.268 MB / 0.4884 GB, free: 2.848 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001722/0.2013, allocations: 228.1 kB / 0.4886 GB, free: 2.598 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0004657/0.2018, allocations: 215.3 kB / 0.4888 GB, free: 2.43 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006745/0.2025, allocations: 423 kB / 0.4892 GB, free: 2.008 MB / 442.7 MB Notification: Performance of SimCode: time 8.91e-07/0.2025, allocations: 0 / 0.4892 GB, free: 2.008 MB / 442.7 MB Notification: Performance of Templates: time 0.02717/0.2297, allocations: 26.29 MB / 0.5149 GB, free: 8.281 MB / 474.7 MB " [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=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Boundaries.Tests.Reservoir.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_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: 3.9089018520899117]