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.001292/0.001292, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.001457/0.001457, allocations: 177 kB / 23.36 MB, free: 1.129 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.8875/0.8875, allocations: 177.1 MB / 203.8 MB, free: 5.484 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.658/0.658, allocations: 118.6 MB / 378.9 MB, free: 1.344 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.132e-06/1.132e-06, allocations: 0 / 430.8 MB, free: 13.34 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.478e-06/1.061e-05, allocations: 2.312 kB / 430.8 MB, free: 13.34 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Boundaries.Tests.Reservoir): time 0.007638/0.007649, allocations: 10.84 MB / 441.7 MB, free: 2.449 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.1468/0.1544, allocations: 2.56 MB / 444.2 MB, free: 16.34 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009502/0.1554, allocations: 61.47 kB / 444.3 MB, free: 16.34 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005333/0.1559, allocations: 280 kB / 444.5 MB, free: 16.34 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001501/0.1574, allocations: 1.072 MB / 445.6 MB, free: 16.14 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008/0.1582, allocations: 0.554 MB / 446.2 MB, free: 16.11 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001597/0.1598, allocations: 2.404 MB / 448.6 MB, free: 15.42 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002574/0.1601, allocations: 176.2 kB / 448.7 MB, free: 15.37 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00145/0.1615, allocations: 1.292 MB / 450 MB, free: 15.23 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007082/0.1622, allocations: 0.6422 MB / 450.7 MB, free: 15.15 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001391/0.1624, allocations: 101.3 kB / 450.8 MB, free: 15.15 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004419/0.1628, allocations: 261.5 kB / 451 MB, free: 15.14 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001601/0.163, allocations: 279.4 kB / 451.3 MB, free: 15.07 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000429/0.1634, allocations: 0.4908 MB / 451.8 MB, free: 15.01 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001046/0.1644, allocations: 1.252 MB / 453.1 MB, free: 14.8 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.1644, allocations: 1.625 kB / 453.1 MB, free: 14.8 MB / 410.7 MB Notification: Performance of FrontEnd: time 7.12e-07/0.1644, allocations: 0 / 453.1 MB, free: 14.8 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.662e-05/0.1645, allocations: 1.25 kB / 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.001624/0.1661, allocations: 1.599 MB / 454.7 MB, free: 14.04 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.849e-05/0.1661, allocations: 9.062 kB / 454.7 MB, free: 14.04 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004379/0.1666, allocations: 256.9 kB / 454.9 MB, free: 14.01 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008995/0.1675, allocations: 0.7933 MB / 455.7 MB, free: 13.66 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.486e-05/0.1675, allocations: 71.25 kB / 455.8 MB, free: 13.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.83e-05/0.1676, allocations: 101.6 kB / 455.9 MB, free: 13.66 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006888/0.1683, allocations: 0.9949 MB / 456.9 MB, free: 13.19 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/0.1683, allocations: 6.969 kB / 456.9 MB, free: 13.19 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.828e-05/0.1683, allocations: 41.69 kB / 456.9 MB, free: 13.17 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.349e-05/0.1683, allocations: 25.52 kB / 456.9 MB, free: 13.17 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000385/0.1687, allocations: 373.2 kB / 457.3 MB, free: 13.13 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002162/0.1709, allocations: 2.451 MB / 459.8 MB, free: 11.46 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006602/0.1716, allocations: 0.6604 MB / 460.4 MB, free: 11.23 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000191/0.1717, allocations: 215.6 kB / 460.6 MB, free: 11.17 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001123/0.1729, allocations: 1.011 MB / 461.6 MB, free: 10.32 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.229e-05/0.1729, allocations: 49.19 kB / 461.7 MB, free: 10.27 MB / 410.7 MB Notification: Performance of pre-optimization done (n=108): time 2.254e-06/0.1729, allocations: 0 / 461.7 MB, free: 10.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.00357/0.1765, allocations: 2.58 MB / 464.3 MB, free: 7.715 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.962e-05/0.1765, allocations: 102.2 kB / 464.4 MB, free: 7.598 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003095/0.1768, allocations: 0.6819 MB / 465 MB, free: 7.02 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.638e-05/0.1768, allocations: 49.7 kB / 465.1 MB, free: 6.965 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.69e-05/0.1769, allocations: 376.7 kB / 465.5 MB, free: 6.637 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/0.1771, allocations: 450.5 kB / 465.9 MB, free: 6.223 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001521/0.1772, allocations: 194.3 kB / 466.1 MB, free: 6.051 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.739e-05/0.1773, allocations: 358.5 kB / 466.4 MB, free: 5.719 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001481/0.1774, allocations: 130.6 kB / 466.6 MB, free: 5.594 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000195/0.1776, allocations: 330.9 kB / 466.9 MB, free: 5.227 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000423/0.178, allocations: 0.5956 MB / 467.5 MB, free: 4.605 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.178, allocations: 4 kB / 467.5 MB, free: 4.602 MB / 410.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.000823/0.1788, allocations: 0.8056 MB / 468.3 MB, free: 3.812 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.1789, allocations: 12.88 kB / 468.3 MB, free: 3.801 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.1789, allocations: 4 kB / 468.3 MB, free: 3.797 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005023/0.1794, allocations: 285 kB / 468.6 MB, free: 3.508 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000398/0.1798, allocations: 222.8 kB / 468.8 MB, free: 3.309 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003598/0.1834, allocations: 9.847 MB / 478.7 MB, free: 8.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002885/0.1837, allocations: 43.97 kB / 478.7 MB, free: 8.867 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.047e-05/0.1837, allocations: 35.94 kB / 478.7 MB, free: 8.832 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.0002058/0.1839, allocations: 180.5 kB / 478.9 MB, free: 8.645 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001363/0.184, allocations: 115.8 kB / 479 MB, free: 8.531 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001258/0.1853, allocations: 1.173 MB / 480.2 MB, free: 7.422 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.1853, allocations: 15.94 kB / 480.2 MB, free: 7.406 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/0.1853, allocations: 7.312 kB / 480.2 MB, free: 7.402 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.1853, allocations: 4.828 kB / 480.2 MB, free: 7.398 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001741/0.1871, allocations: 1.538 MB / 481.8 MB, free: 5.898 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.1871, allocations: 4 kB / 481.8 MB, free: 5.895 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003792/0.1875, allocations: 175.8 kB / 481.9 MB, free: 5.723 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005556/0.188, allocations: 309.2 kB / 482.2 MB, free: 5.406 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.991e-05/0.1881, allocations: 35.97 kB / 482.3 MB, free: 5.371 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004337/0.1924, allocations: 9.857 MB / 492.1 MB, free: 10.91 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.1924, allocations: 4.594 kB / 492.1 MB, free: 10.9 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001177/0.1936, allocations: 1.137 MB / 493.3 MB, free: 9.746 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002138/0.1938, allocations: 135.1 kB / 493.4 MB, free: 9.613 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.193e-05/0.1939, allocations: 24 kB / 493.4 MB, free: 9.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003136/0.1942, allocations: 39.98 kB / 493.5 MB, free: 9.551 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000145/0.1943, allocations: 101.8 kB / 493.6 MB, free: 9.453 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.294e-05/0.1944, allocations: 35.91 kB / 493.6 MB, free: 9.418 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002418/0.1946, allocations: 361.6 kB / 494 MB, free: 9.094 MB / 442.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1946, allocations: 0 / 494 MB, free: 9.094 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007121/0.1953, allocations: 371.9 kB / 494.3 MB, free: 8.73 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.0001926/0.1955, allocations: 151.2 kB / 494.5 MB, free: 8.582 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001136/0.1967, allocations: 1.54 MB / 496 MB, free: 6.957 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/0.1967, allocations: 8 kB / 496 MB, free: 6.949 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008548/0.1975, allocations: 1.323 MB / 497.3 MB, free: 5.543 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.1986, allocations: 0.4894 MB / 497.8 MB, free: 5.078 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002955/0.2016, allocations: 2.257 MB / 0.4884 GB, free: 2.797 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002016/0.2018, allocations: 232.1 kB / 0.4886 GB, free: 2.543 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0004595/0.2022, allocations: 219.6 kB / 0.4888 GB, free: 2.371 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006699/0.2029, allocations: 415 kB / 0.4892 GB, free: 1.957 MB / 442.7 MB Notification: Performance of SimCode: time 6.71e-07/0.2029, allocations: 0 / 0.4892 GB, free: 1.957 MB / 442.7 MB Notification: Performance of Templates: time 0.02761/0.2305, allocations: 26.3 MB / 0.5149 GB, free: 8.234 MB / 474.7 MB " [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: 3.963422094937414]