Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.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.0009029/0.0009029, 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.000944/0.000944, allocations: 165 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.935/0.935, allocations: 177.1 MB / 203.4 MB, free: 5.652 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.7298/0.7298, allocations: 118.6 MB / 378.6 MB, free: 1.527 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.Interfaces.Tests.Test_p_out_clipping,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|basicControlValve.m_flow|flowResistance.m_flow|flowResistance1.m_flow|specificValveType.m_flow|tanValve.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping") translateModel(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|basicControlValve.m_flow|flowResistance.m_flow|flowResistance1.m_flow|specificValveType.m_flow|tanValve.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.884e-06/1.884e-06, allocations: 0 / 483.6 MB, free: 8.223 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.823e-05/3.012e-05, allocations: 2.312 kB / 483.6 MB, free: 8.219 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping): time 0.1326/0.1326, allocations: 137 MB / 0.606 GB, free: 7.316 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.005991/0.1386, allocations: 3.703 MB / 0.6096 GB, free: 3.605 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001194/0.1398, allocations: 95.12 kB / 0.6097 GB, free: 3.512 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.001182/0.141, allocations: 0.5626 MB / 0.6103 GB, free: 2.945 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.002417/0.1434, allocations: 1.316 MB / 0.6116 GB, free: 1.621 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001346/0.1447, allocations: 0.6662 MB / 0.6122 GB, free: 0.9531 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.002668/0.1474, allocations: 2.913 MB / 0.6151 GB, free: 14.03 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000402/0.1478, allocations: 241.3 kB / 0.6153 GB, free: 13.77 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00204/0.1499, allocations: 1.601 MB / 0.6169 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001076/0.1509, allocations: 1.056 MB / 0.6179 GB, free: 11.11 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 0.0001483/0.1511, allocations: 108 kB / 0.618 GB, free: 11 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006778/0.1518, allocations: 355.4 kB / 0.6183 GB, free: 10.65 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0004891/0.1523, allocations: 350.3 kB / 0.6187 GB, free: 10.31 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0004711/0.1527, allocations: 0.5532 MB / 0.6192 GB, free: 9.754 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.00165/0.1544, allocations: 1.572 MB / 0.6207 GB, free: 8.176 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1544, allocations: 0 / 0.6207 GB, free: 8.176 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.212e-06/0.1544, allocations: 0 / 0.6207 GB, free: 8.176 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.804e-05/0.1544, allocations: 0 / 0.6207 GB, free: 8.176 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 266 * Number of variables: 266 Notification: Performance of Generate backend data structure: time 0.002234/0.1566, allocations: 2.182 MB / 0.6229 GB, free: 5.941 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.1567, allocations: 8.031 kB / 0.6229 GB, free: 5.934 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005048/0.1572, allocations: 339.4 kB / 0.6232 GB, free: 5.602 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001372/0.1586, allocations: 1.242 MB / 0.6244 GB, free: 4.316 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.74e-05/0.1586, allocations: 82.47 kB / 0.6245 GB, free: 4.234 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.1587, allocations: 108.4 kB / 0.6246 GB, free: 4.129 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001047/0.1598, allocations: 0.9496 MB / 0.6255 GB, free: 3.078 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.819e-05/0.1598, allocations: 4 kB / 0.6255 GB, free: 3.074 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003128/0.1601, allocations: 40 kB / 0.6256 GB, free: 3.035 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.896e-05/0.1601, allocations: 28 kB / 0.6256 GB, free: 3.008 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007696/0.1609, allocations: 0.5598 MB / 0.6261 GB, free: 2.449 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003877/0.1648, allocations: 4.216 MB / 0.6303 GB, free: 14.11 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008515/0.1656, allocations: 0.614 MB / 0.6309 GB, free: 13.46 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003383/0.1659, allocations: 280.9 kB / 0.6311 GB, free: 13.17 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001877/0.1678, allocations: 1.594 MB / 0.6327 GB, free: 11.55 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/0.1678, allocations: 50.03 kB / 0.6327 GB, free: 11.49 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=108): time 2.595e-06/0.1678, allocations: 0 / 0.6327 GB, free: 11.49 MB / 0.5573 GB Notification: Performance of matching and sorting (n=108): time 0.001753/0.1696, allocations: 1.178 MB / 0.6339 GB, free: 10.29 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.886e-05/0.1697, allocations: 119.4 kB / 0.634 GB, free: 10.15 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000852/0.1705, allocations: 1.093 MB / 0.6351 GB, free: 9.027 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 4.414e-05/0.1705, allocations: 45.7 kB / 0.6351 GB, free: 8.977 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003796/0.1709, allocations: 0.7217 MB / 0.6358 GB, free: 8.25 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001936/0.1711, allocations: 392.5 kB / 0.6362 GB, free: 7.863 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001973/0.1713, allocations: 212.5 kB / 0.6364 GB, free: 7.648 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001272/0.1714, allocations: 0.5082 MB / 0.6369 GB, free: 7.133 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002659/0.1717, allocations: 170.5 kB / 0.637 GB, free: 6.965 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004421/0.1722, allocations: 0.5747 MB / 0.6376 GB, free: 6.258 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006905/0.1728, allocations: 0.6 MB / 0.6382 GB, free: 5.602 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.1728, allocations: 0 / 0.6382 GB, free: 5.602 MB / 0.5573 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.00117/0.174, allocations: 0.9562 MB / 0.6391 GB, free: 4.621 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.174, allocations: 8 kB / 0.6391 GB, free: 4.613 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.174, allocations: 4.344 kB / 0.6391 GB, free: 4.609 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003395/0.1744, allocations: 158.2 kB / 0.6393 GB, free: 4.434 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007544/0.1751, allocations: 211.7 kB / 0.6395 GB, free: 4.227 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.235/0.4102, allocations: 8.876 MB / 0.6482 GB, free: 44.17 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007778/0.4109, allocations: 90.02 kB / 0.6482 GB, free: 44.17 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-05/0.411, allocations: 52.39 kB / 0.6483 GB, free: 44.17 MB / 0.5573 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 (117): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(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.0003176/0.4114, allocations: 215 kB / 0.6485 GB, free: 44.01 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002471/0.4116, allocations: 201.3 kB / 0.6487 GB, free: 44.01 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001922/0.4135, allocations: 1.596 MB / 0.6503 GB, free: 43.54 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.4135, allocations: 12.16 kB / 0.6503 GB, free: 43.54 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.4135, allocations: 7.844 kB / 0.6503 GB, free: 43.54 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.4136, allocations: 4.844 kB / 0.6503 GB, free: 43.54 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002091/0.4156, allocations: 1.964 MB / 0.6522 GB, free: 42.79 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.4156, allocations: 3.625 kB / 0.6522 GB, free: 42.79 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002868/0.4159, allocations: 123.8 kB / 0.6523 GB, free: 42.79 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003151/0.4162, allocations: 171.1 kB / 0.6525 GB, free: 42.73 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.178e-05/0.4163, allocations: 30.23 kB / 0.6525 GB, free: 42.73 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002502/0.4188, allocations: 8.887 MB / 0.6612 GB, free: 34.14 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/0.4188, allocations: 6.281 kB / 0.6612 GB, free: 34.14 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00141/0.4202, allocations: 1.382 MB / 0.6625 GB, free: 33.4 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003015/0.4205, allocations: 243.9 kB / 0.6628 GB, free: 33.32 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001028/0.4206, allocations: 34.3 kB / 0.6628 GB, free: 33.31 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003041/0.4209, allocations: 22.47 kB / 0.6628 GB, free: 33.31 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.421, allocations: 72.78 kB / 0.6629 GB, free: 33.31 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.659e-05/0.4211, allocations: 40.44 kB / 0.6629 GB, free: 33.31 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0006701/0.4217, allocations: 0.7327 MB / 0.6637 GB, free: 33.16 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6e-08/0.4217, allocations: 0 / 0.6637 GB, free: 33.16 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001148/0.4229, allocations: 420.5 kB / 0.6641 GB, free: 33.13 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 5 (flowResistance1.m_flow,flowResistance.m_flow,basicControlValve.m_flow,specificValveType.m_flow,tanValve.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 (70): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(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 Backend phase and start with SimCode phase: time 0.0009648/0.4239, allocations: 398.6 kB / 0.6644 GB, free: 32.98 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001286/0.4251, allocations: 1.405 MB / 0.6658 GB, free: 32.11 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.4251, allocations: 0 / 0.6658 GB, free: 32.11 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0005878/0.4257, allocations: 1.122 MB / 0.6669 GB, free: 31.24 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001613/0.4274, allocations: 0.5733 MB / 0.6675 GB, free: 31.16 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00354/0.4309, allocations: 2.593 MB / 0.67 GB, free: 29.87 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002075/0.4311, allocations: 258.4 kB / 0.6702 GB, free: 29.78 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0007627/0.4319, allocations: 270.8 kB / 0.6705 GB, free: 29.7 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001989/0.4321, allocations: 135.5 kB / 0.6706 GB, free: 29.7 MB / 0.5573 GB Notification: Performance of SimCode: time 1.633e-06/0.4321, allocations: 1.125 kB / 0.6706 GB, free: 29.7 MB / 0.5573 GB Notification: Performance of Templates: time 0.02967/0.4617, allocations: 21.72 MB / 0.6918 GB, free: 26.62 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Interfaces.Tests.Test_p_out_clipping_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.599785475991666]