Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.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.0009812/0.0009812, 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.0009354/0.0009354, 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.9821/0.9821, allocations: 177.1 MB / 203.4 MB, free: 5.672 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.7363/0.7363, allocations: 118.6 MB / 378.6 MB, free: 1.516 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.Topology.Tests.TestJunctionNM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|junctionNM.splitterN.inlet.m_flow|junctionNM1.splitterN.inlet.m_flow|sink.inlet.m_flow|sink1.inlet.m_flow|sink3.inlet.m_flow|sink4.inlet.m_flow|source.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM") translateModel(ThermofluidStream.Topology.Tests.TestJunctionNM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|junctionNM.splitterN.inlet.m_flow|junctionNM1.splitterN.inlet.m_flow|sink.inlet.m_flow|sink1.inlet.m_flow|sink3.inlet.m_flow|sink4.inlet.m_flow|source.outlet.m_flow|source2.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 483.6 MB, free: 8.238 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.937e-05/2.089e-05, allocations: 2.312 kB / 483.6 MB, free: 8.234 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.16/0.16, allocations: 155.3 MB / 0.6239 GB, free: 4.938 MB / 0.5417 GB Notification: Performance of NFInst.instExpressions: time 0.007415/0.1674, allocations: 4.325 MB / 0.6281 GB, free: 0.6016 MB / 0.5417 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001508/0.1689, allocations: 130.8 kB / 0.6282 GB, free: 484 kB / 0.5417 GB Notification: Performance of NFTyping.typeComponents: time 0.00104/0.17, allocations: 492 kB / 0.6287 GB, free: 15.98 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.004999/0.175, allocations: 2.613 MB / 0.6313 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.002511/0.1775, allocations: 1.001 MB / 0.6322 GB, free: 12.36 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.004489/0.182, allocations: 4.585 MB / 0.6367 GB, free: 7.75 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007461/0.1827, allocations: 0.6458 MB / 0.6374 GB, free: 7.062 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002979/0.1857, allocations: 2.649 MB / 0.6399 GB, free: 4.406 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001518/0.1872, allocations: 1.683 MB / 0.6416 GB, free: 2.719 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 0.0002811/0.1875, allocations: 247.9 kB / 0.6418 GB, free: 2.477 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003083/0.1906, allocations: 1.836 MB / 0.6436 GB, free: 0.6367 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 0.2847/0.4753, allocations: 0.9526 MB / 0.6445 GB, free: 19.38 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.003007/0.4783, allocations: 1.076 MB / 0.6456 GB, free: 19.38 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.006498/0.4848, allocations: 3.673 MB / 0.6492 GB, free: 19.15 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.4848, allocations: 5.359 kB / 0.6492 GB, free: 19.15 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.332e-06/0.4848, allocations: 0 / 0.6492 GB, free: 19.15 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 8.476e-05/0.4849, allocations: 0 / 0.6492 GB, free: 19.15 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 516 * Number of variables: 516 Notification: Performance of Generate backend data structure: time 0.005714/0.4906, allocations: 3.86 MB / 0.653 GB, free: 17.51 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.4906, allocations: 9.344 kB / 0.653 GB, free: 17.51 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000966/0.4916, allocations: 0.5964 MB / 0.6535 GB, free: 17.29 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00215/0.4937, allocations: 1.85 MB / 0.6554 GB, free: 16.73 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.466e-05/0.4938, allocations: 143.4 kB / 0.6555 GB, free: 16.72 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002025/0.494, allocations: 207.9 kB / 0.6557 GB, free: 16.71 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002006/0.496, allocations: 1.793 MB / 0.6574 GB, free: 16.41 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.224e-05/0.496, allocations: 6.906 kB / 0.6574 GB, free: 16.41 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001085/0.4962, allocations: 78.61 kB / 0.6575 GB, free: 16.41 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001412/0.4963, allocations: 186.4 kB / 0.6577 GB, free: 16.4 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001622/0.4979, allocations: 1.255 MB / 0.6589 GB, free: 16.38 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007792/0.5057, allocations: 7.47 MB / 0.6662 GB, free: 29.71 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/0.5071, allocations: 0.8506 MB / 0.667 GB, free: 29.64 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000861/0.5079, allocations: 0.6148 MB / 0.6676 GB, free: 29.61 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003065/0.5082, allocations: 137.2 kB / 0.6678 GB, free: 29.61 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.376e-05/0.5083, allocations: 58.95 kB / 0.6678 GB, free: 29.56 MB / 0.573 GB Notification: Performance of pre-optimization done (n=196): time 4.499e-06/0.5083, allocations: 2.25 kB / 0.6678 GB, free: 29.56 MB / 0.573 GB Notification: Performance of matching and sorting (n=200): time 0.007757/0.516, allocations: 4.941 MB / 0.6727 GB, free: 28.28 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.407e-05/0.5161, allocations: 100.2 kB / 0.6728 GB, free: 28.18 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001438/0.5175, allocations: 1.456 MB / 0.6742 GB, free: 27.89 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 9.99e-05/0.5176, allocations: 62.44 kB / 0.6742 GB, free: 27.86 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004539/0.5181, allocations: 1.115 MB / 0.6753 GB, free: 27.44 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003264/0.5184, allocations: 0.7202 MB / 0.676 GB, free: 26.96 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003718/0.5188, allocations: 358 kB / 0.6764 GB, free: 26.94 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001247/0.5189, allocations: 485.4 kB / 0.6768 GB, free: 26.47 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006397/0.5195, allocations: 424.6 kB / 0.6772 GB, free: 26.46 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007372/0.5203, allocations: 0.6418 MB / 0.6779 GB, free: 26.3 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001451/0.5217, allocations: 1.229 MB / 0.6791 GB, free: 26.12 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.5217, allocations: 0 / 0.6791 GB, free: 26.12 MB / 0.573 GB Notification: Performance of matching and sorting (n=222) (initialization): time 0.002349/0.5241, allocations: 1.913 MB / 0.6809 GB, free: 25.87 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 2.057e-05/0.5241, allocations: 6.688 kB / 0.6809 GB, free: 25.87 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.5241, allocations: 3.031 kB / 0.6809 GB, free: 25.87 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001008/0.5251, allocations: 460.4 kB / 0.6814 GB, free: 25.84 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006792/0.5258, allocations: 349 kB / 0.6817 GB, free: 25.84 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004129/0.5299, allocations: 5.865 MB / 0.6874 GB, free: 21.82 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005829/0.5305, allocations: 55.06 kB / 0.6875 GB, free: 21.82 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001531/0.5307, allocations: 112.6 kB / 0.6876 GB, free: 21.82 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (182): * Single equations (assignments): 170 * Array equations: 10 * 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 {(5,16,68.0%), (5,16,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004931/0.5312, allocations: 250.3 kB / 0.6878 GB, free: 21.66 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003028/0.5315, allocations: 297 kB / 0.6881 GB, free: 21.54 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00343/0.5349, allocations: 3.272 MB / 0.6913 GB, free: 21.08 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.379e-05/0.5349, allocations: 18.09 kB / 0.6913 GB, free: 21.08 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/0.5349, allocations: 9.406 kB / 0.6913 GB, free: 21.08 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.5349, allocations: 12.8 kB / 0.6914 GB, free: 21.07 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005149/0.5401, allocations: 4.204 MB / 0.6955 GB, free: 20.23 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.5401, allocations: 0 / 0.6955 GB, free: 20.23 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005353/0.5406, allocations: 269.5 kB / 0.6957 GB, free: 20.23 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009857/0.5416, allocations: 496.2 kB / 0.6962 GB, free: 20.19 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001181/0.5417, allocations: 72.7 kB / 0.6963 GB, free: 20.19 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004344/0.5461, allocations: 5.866 MB / 0.702 GB, free: 16.17 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.5461, allocations: 6.719 kB / 0.702 GB, free: 16.17 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003048/0.5491, allocations: 2.549 MB / 0.7045 GB, free: 15.54 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005337/0.5497, allocations: 435.9 kB / 0.7049 GB, free: 15.41 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001729/0.5498, allocations: 41.39 kB / 0.7049 GB, free: 15.41 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004801/0.5503, allocations: 47.39 kB / 0.705 GB, free: 15.41 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001915/0.5505, allocations: 160 kB / 0.7051 GB, free: 15.41 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001114/0.5506, allocations: 93.83 kB / 0.7052 GB, free: 15.41 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.000859/0.5515, allocations: 0.9768 MB / 0.7062 GB, free: 15.21 MB / 0.573 GB Notification: Performance of sort global known variables: time 8e-08/0.5515, allocations: 0 / 0.7062 GB, free: 15.21 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001935/0.5534, allocations: 0.8185 MB / 0.707 GB, free: 15.18 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (junctionNM1.junctionN.outlet.m_flow,flowResistance6.inlet.m_flow,flowResistance8.inlet.m_flow,flowResistance9.inlet.m_flow,junctionNM.junctionN.outlet.m_flow,flowResistance1.inlet.m_flow,flowResistance3.inlet.m_flow,flowResistance4.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 (146): * Single equations (assignments): 134 * Array equations: 10 * 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 {(5,16,68.0%), (5,16,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006471/0.5541, allocations: 414.1 kB / 0.7074 GB, free: 15.06 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.00223/0.5563, allocations: 1.921 MB / 0.7093 GB, free: 14.6 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.5563, allocations: 0 / 0.7093 GB, free: 14.6 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.00131/0.5576, allocations: 1.363 MB / 0.7106 GB, free: 14.17 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002509/0.5601, allocations: 1.091 MB / 0.7117 GB, free: 14.02 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00638/0.5665, allocations: 4.432 MB / 0.716 GB, free: 12.16 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004514/0.5669, allocations: 0.5327 MB / 0.7165 GB, free: 12.04 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.001511/0.5684, allocations: 1.001 MB / 0.7175 GB, free: 11.84 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004862/0.5689, allocations: 237 kB / 0.7177 GB, free: 11.84 MB / 0.573 GB Notification: Performance of SimCode: time 8.22e-07/0.5689, allocations: 0 / 0.7177 GB, free: 11.84 MB / 0.573 GB Notification: Performance of Templates: time 0.05811/0.627, allocations: 51.7 MB / 0.7682 GB, free: 6.887 MB / 0.6042 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe >> ../files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.sim & ./ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunctionNM_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: 5.540983096230775]