Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.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.0009712/0.0009712, allocations: 69.89 kB / 20.65 MB, free: 3.852 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.0009848/0.0009848, allocations: 173 kB / 24.06 MB, free: 456 kB / 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.9768/0.9768, allocations: 177.1 MB / 204.5 MB, free: 5.531 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.6676/0.6676, allocations: 118.7 MB / 379.7 MB, free: 1.398 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.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.262e-06/1.262e-06, allocations: 3.938 kB / 484.8 MB, free: 8.129 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.235e-05/2.361e-05, allocations: 5.406 kB / 484.8 MB, free: 8.125 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.1503/0.1503, allocations: 129 MB / 0.5995 GB, free: 15.02 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.002664/0.1529, allocations: 1.882 MB / 0.6013 GB, free: 13.13 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003838/0.1533, allocations: 39.62 kB / 0.6013 GB, free: 13.09 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0005052/0.1538, allocations: 166.6 kB / 0.6015 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.001021/0.1549, allocations: 0.5471 MB / 0.602 GB, free: 12.38 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005026/0.1554, allocations: 267.2 kB / 0.6023 GB, free: 12.12 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0009597/0.1563, allocations: 1.111 MB / 0.6034 GB, free: 11 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002168/0.1565, allocations: 106.6 kB / 0.6035 GB, free: 10.89 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000884/0.1574, allocations: 0.6037 MB / 0.6041 GB, free: 10.29 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005391/0.158, allocations: 426.8 kB / 0.6045 GB, free: 9.867 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 6.755e-05/0.158, allocations: 44 kB / 0.6045 GB, free: 9.824 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005011/0.1585, allocations: 235.5 kB / 0.6047 GB, free: 9.594 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0001193/0.1586, allocations: 123.4 kB / 0.6049 GB, free: 9.473 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0002099/0.1589, allocations: 231.4 kB / 0.6051 GB, free: 9.246 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0009763/0.1598, allocations: 0.6343 MB / 0.6057 GB, free: 8.609 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1598, allocations: 4 kB / 0.6057 GB, free: 8.605 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.432e-06/0.1598, allocations: 0 / 0.6057 GB, free: 8.605 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.071e-05/0.1599, allocations: 0 / 0.6057 GB, free: 8.605 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.001076/0.1609, allocations: 1.009 MB / 0.6067 GB, free: 7.559 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.026e-05/0.161, allocations: 8.031 kB / 0.6067 GB, free: 7.551 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002826/0.1612, allocations: 156.3 kB / 0.6068 GB, free: 7.398 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000541/0.1618, allocations: 0.5157 MB / 0.6073 GB, free: 6.859 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.019e-05/0.1618, allocations: 37.38 kB / 0.6074 GB, free: 6.82 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.616e-05/0.1619, allocations: 44.36 kB / 0.6074 GB, free: 6.777 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003542/0.1622, allocations: 372 kB / 0.6078 GB, free: 6.387 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.1622, allocations: 4.188 kB / 0.6078 GB, free: 6.383 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.621e-05/0.1622, allocations: 20.12 kB / 0.6078 GB, free: 6.363 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.573e-06/0.1623, allocations: 8 kB / 0.6078 GB, free: 6.355 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002126/0.1625, allocations: 186.8 kB / 0.608 GB, free: 6.172 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001576/0.164, allocations: 1.575 MB / 0.6095 GB, free: 4.547 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003494/0.1644, allocations: 239.9 kB / 0.6098 GB, free: 4.301 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.1645, allocations: 109.1 kB / 0.6099 GB, free: 4.191 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001057/0.1656, allocations: 0.8339 MB / 0.6107 GB, free: 3.336 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.482e-05/0.1656, allocations: 41.89 kB / 0.6107 GB, free: 3.285 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=47): time 1.683e-06/0.1656, allocations: 0 / 0.6107 GB, free: 3.285 MB / 0.5261 GB Notification: Performance of matching and sorting (n=47): time 0.0007133/0.1663, allocations: 471.9 kB / 0.6112 GB, free: 2.812 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/0.1663, allocations: 63.78 kB / 0.6112 GB, free: 2.738 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002817/0.1666, allocations: 458.5 kB / 0.6117 GB, free: 2.273 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.564e-05/0.1666, allocations: 33.7 kB / 0.6117 GB, free: 2.234 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001558/0.1668, allocations: 335.3 kB / 0.612 GB, free: 1.898 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 8.483e-05/0.1669, allocations: 174.5 kB / 0.6122 GB, free: 1.727 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.31e-05/0.167, allocations: 91.77 kB / 0.6123 GB, free: 1.625 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000147/0.1671, allocations: 0.5428 MB / 0.6128 GB, free: 1.07 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.5e-05/0.1672, allocations: 60.94 kB / 0.6129 GB, free: 1.012 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001159/0.1673, allocations: 123.8 kB / 0.613 GB, free: 0.875 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002128/0.1675, allocations: 212.3 kB / 0.6132 GB, free: 0.6445 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.1675, allocations: 0 / 0.6132 GB, free: 0.6445 MB / 0.5261 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0003871/0.1679, allocations: 380.4 kB / 0.6135 GB, free: 264 kB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.236e-05/0.1679, allocations: 4 kB / 0.6135 GB, free: 260 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.1679, allocations: 4 kB / 0.6135 GB, free: 256 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001812/0.1681, allocations: 75.36 kB / 0.6136 GB, free: 172 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001744/0.1683, allocations: 87.89 kB / 0.6137 GB, free: 84 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001672/0.17, allocations: 3.501 MB / 0.6171 GB, free: 12.36 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001428/0.1701, allocations: 39.8 kB / 0.6172 GB, free: 12.32 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.118e-05/0.1701, allocations: 15.98 kB / 0.6172 GB, free: 12.3 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.0001466/0.1703, allocations: 172.5 kB / 0.6173 GB, free: 12.12 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.621e-05/0.1704, allocations: 79.56 kB / 0.6174 GB, free: 12.04 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006044/0.171, allocations: 0.582 MB / 0.618 GB, free: 11.43 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.856e-06/0.171, allocations: 4 kB / 0.618 GB, free: 11.43 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.171, allocations: 3.938 kB / 0.618 GB, free: 11.42 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.171, allocations: 0 / 0.618 GB, free: 11.42 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008409/0.1718, allocations: 0.8506 MB / 0.6188 GB, free: 10.51 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/0.1718, allocations: 4 kB / 0.6188 GB, free: 10.51 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001325/0.1719, allocations: 64.03 kB / 0.6189 GB, free: 10.45 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001508/0.1721, allocations: 75.28 kB / 0.619 GB, free: 10.36 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.595e-05/0.1721, allocations: 19.97 kB / 0.619 GB, free: 10.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001391/0.1735, allocations: 3.51 MB / 0.6224 GB, free: 6.609 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.1735, allocations: 3.938 kB / 0.6224 GB, free: 6.605 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007541/0.1743, allocations: 0.5917 MB / 0.623 GB, free: 5.969 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000112/0.1744, allocations: 95.48 kB / 0.6231 GB, free: 5.875 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.929e-05/0.1744, allocations: 23.98 kB / 0.6231 GB, free: 5.852 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001171/0.1745, allocations: 11.94 kB / 0.6231 GB, free: 5.84 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.601e-05/0.1746, allocations: 39.92 kB / 0.6231 GB, free: 5.801 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.56e-05/0.1746, allocations: 8 kB / 0.6232 GB, free: 5.793 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001589/0.1748, allocations: 310.7 kB / 0.6234 GB, free: 5.492 MB / 0.5417 GB Notification: Performance of sort global known variables: time 7e-08/0.1748, allocations: 4 kB / 0.6235 GB, free: 5.488 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0004117/0.1752, allocations: 171.7 kB / 0.6236 GB, free: 5.32 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance.rear.m_flow,flowResistance1.rear.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(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.0001669/0.1753, allocations: 139.1 kB / 0.6237 GB, free: 5.172 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.000456/0.1758, allocations: 0.5632 MB / 0.6243 GB, free: 4.57 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1758, allocations: 0 / 0.6243 GB, free: 4.57 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002679/0.1761, allocations: 487.4 kB / 0.6248 GB, free: 4.055 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006313/0.1767, allocations: 231.1 kB / 0.625 GB, free: 3.84 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001466/0.1782, allocations: 1.081 MB / 0.626 GB, free: 2.707 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.168e-05/0.1783, allocations: 134 kB / 0.6262 GB, free: 2.551 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0002251/0.1785, allocations: 111.5 kB / 0.6263 GB, free: 2.453 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002959/0.1788, allocations: 246.1 kB / 0.6265 GB, free: 2.211 MB / 0.5417 GB Notification: Performance of SimCode: time 6.41e-07/0.1788, allocations: 0 / 0.6265 GB, free: 2.211 MB / 0.5417 GB Notification: Performance of Templates: time 0.01349/0.1923, allocations: 10.6 MB / 0.6369 GB, free: 7.883 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_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.166195146739483]