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.00181/0.00181, allocations: 114.3 kB / 18.94 MB, free: 2.934 MB / 14.72 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.002251/0.002251, allocations: 211.9 kB / 22.25 MB, free: 5.082 MB / 14.72 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 1.506/1.506, allocations: 230.6 MB / 256 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.7622/0.7622, allocations: 94.55 MB / 407 MB, free: 9.164 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.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: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003935/0.003935, allocations: 88.69 kB / 0.5554 GB, free: 38.48 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1358, allocations: 73.05 MB / 0.6268 GB, free: 15.94 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.7353/0.8711, allocations: 365.3 MB / 0.9836 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.05549/0.9266, allocations: 39.09 MB / 1.022 GB, free: 9.844 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002249/0.9289, allocations: 107 kB / 1.022 GB, free: 9.738 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.005604/0.9345, allocations: 2.076 MB / 1.024 GB, free: 7.652 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.02452/0.959, allocations: 8.844 MB / 1.032 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.01202/0.971, allocations: 4.348 MB / 1.037 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.00648/0.9775, allocations: 4.028 MB / 1.041 GB, free: 6.371 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001325/0.9788, allocations: 0.6452 MB / 1.041 GB, free: 5.676 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005993/0.9848, allocations: 2.721 MB / 1.044 GB, free: 2.945 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003493/0.9883, allocations: 1.856 MB / 1.046 GB, free: 1.082 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0006995/0.989, allocations: 244 kB / 1.046 GB, free: 0.8438 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.4488/1.438, allocations: 17.37 MB / 1.063 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.00139/1.439, allocations: 0.8655 MB / 1.064 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.00245/1.442, allocations: 1.444 MB / 1.065 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.02539/1.467, allocations: 10.08 MB / 1.075 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/1.467, allocations: 0 / 1.075 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.883e-06/1.467, allocations: 0.5625 kB / 1.075 GB, free: 9.727 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.413e-05/1.467, allocations: 0.5 kB / 1.075 GB, free: 9.727 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 506 * Number of variables: 506 Notification: Performance of Generate backend data structure: time 0.01086/1.478, allocations: 4.605 MB / 1.08 GB, free: 7.617 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/1.478, allocations: 9.75 kB / 1.08 GB, free: 7.617 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006539/1.479, allocations: 304.5 kB / 1.08 GB, free: 7.461 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00303/1.482, allocations: 1.587 MB / 1.081 GB, free: 7.004 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.801e-05/1.482, allocations: 145.3 kB / 1.082 GB, free: 7 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003197/1.482, allocations: 197.5 kB / 1.082 GB, free: 6.996 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004214/1.486, allocations: 3.132 MB / 1.085 GB, free: 6.859 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.385e-05/1.486, allocations: 2.375 kB / 1.085 GB, free: 6.859 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00017/1.486, allocations: 77.28 kB / 1.085 GB, free: 6.859 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001992/1.487, allocations: 188.7 kB / 1.085 GB, free: 6.855 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004479/1.491, allocations: 3.461 MB / 1.088 GB, free: 6.84 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01493/1.506, allocations: 12.39 MB / 1.101 GB, free: 15.75 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002277/1.508, allocations: 1.49 MB / 1.102 GB, free: 15.7 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001678/1.51, allocations: 1.282 MB / 1.103 GB, free: 15.67 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001296/1.511, allocations: 0.4917 MB / 1.104 GB, free: 15.67 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.015e-05/1.511, allocations: 58.56 kB / 1.104 GB, free: 15.63 MB / 0.795 GB Notification: Performance of pre-optimization done (n=196): time 4.779e-06/1.511, allocations: 0 / 1.104 GB, free: 15.63 MB / 0.795 GB Notification: Performance of matching and sorting (n=200): time 0.0138/1.525, allocations: 7.822 MB / 1.111 GB, free: 14.54 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.961e-05/1.525, allocations: 105.5 kB / 1.112 GB, free: 14.44 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001791/1.527, allocations: 1.46 MB / 1.113 GB, free: 14.28 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0001949/1.527, allocations: 60.77 kB / 1.113 GB, free: 14.25 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.000507/1.528, allocations: 0.9228 MB / 1.114 GB, free: 13.94 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004366/1.528, allocations: 0.7126 MB / 1.115 GB, free: 13.47 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000508/1.529, allocations: 342.4 kB / 1.115 GB, free: 13.45 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001486/1.529, allocations: 302.5 kB / 1.115 GB, free: 13.16 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001408/1.53, allocations: 1.033 MB / 1.116 GB, free: 13.15 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001548/1.532, allocations: 1.157 MB / 1.117 GB, free: 13.12 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003091/1.535, allocations: 2.352 MB / 1.12 GB, free: 13.08 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/1.535, allocations: 3.531 kB / 1.12 GB, free: 13.08 MB / 0.795 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005051/1.54, allocations: 3.068 MB / 1.123 GB, free: 12.86 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.35e-05/1.54, allocations: 3.375 kB / 1.123 GB, free: 12.86 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/1.54, allocations: 2.438 kB / 1.123 GB, free: 12.86 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001349/1.541, allocations: 481.9 kB / 1.123 GB, free: 12.84 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001148/1.543, allocations: 333.7 kB / 1.123 GB, free: 12.84 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007611/1.55, allocations: 6.138 MB / 1.129 GB, free: 10.01 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001441/1.552, allocations: 52.61 kB / 1.129 GB, free: 10.01 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000273/1.552, allocations: 114.6 kB / 1.13 GB, free: 10.01 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (172): * Single equations (assignments): 160 * 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.001142/1.553, allocations: 0.5247 MB / 1.13 GB, free: 9.887 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005415/1.554, allocations: 215.5 kB / 1.13 GB, free: 9.77 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006744/1.56, allocations: 4.646 MB / 1.135 GB, free: 9.363 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.227e-05/1.56, allocations: 21.66 kB / 1.135 GB, free: 9.363 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.177e-05/1.56, allocations: 8.094 kB / 1.135 GB, free: 9.363 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-05/1.56, allocations: 11.95 kB / 1.135 GB, free: 9.363 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009821/1.57, allocations: 6.257 MB / 1.141 GB, free: 8.832 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-05/1.57, allocations: 5.562 kB / 1.141 GB, free: 8.832 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/1.571, allocations: 304.7 kB / 1.141 GB, free: 8.828 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001302/1.573, allocations: 0.4938 MB / 1.142 GB, free: 8.793 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001663/1.573, allocations: 79.78 kB / 1.142 GB, free: 8.793 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007219/1.58, allocations: 6.154 MB / 1.148 GB, free: 5.953 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/1.58, allocations: 4.531 kB / 1.148 GB, free: 5.953 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008226/1.588, allocations: 4.797 MB / 1.153 GB, free: 3.992 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008865/1.589, allocations: 205.7 kB / 1.153 GB, free: 3.82 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007143/1.59, allocations: 45.73 kB / 1.153 GB, free: 3.805 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001384/1.591, allocations: 45.8 kB / 1.153 GB, free: 3.793 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004246/1.592, allocations: 176 kB / 1.153 GB, free: 3.723 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002914/1.592, allocations: 110.3 kB / 1.153 GB, free: 3.652 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.002018/1.594, allocations: 1.126 MB / 1.154 GB, free: 3.023 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/1.594, allocations: 0 / 1.154 GB, free: 3.023 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.005775/1.6, allocations: 1.685 MB / 1.156 GB, free: 1.598 MB / 0.795 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 (160): * Single equations (assignments): 148 * 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.006209/1.606, allocations: 1.997 MB / 1.158 GB, free: 164 kB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.006415/1.612, allocations: 3.018 MB / 1.161 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 5.71e-06/1.612, allocations: 0 / 1.161 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.003776/1.616, allocations: 1.801 MB / 1.163 GB, free: 12.82 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00474/1.621, allocations: 0.8083 MB / 1.163 GB, free: 12.07 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0104/1.631, allocations: 5.101 MB / 1.168 GB, free: 6.957 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002135/1.633, allocations: 1.768 MB / 1.17 GB, free: 5.152 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.003216/1.637, allocations: 1.292 MB / 1.171 GB, free: 3.875 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008664/1.637, allocations: 234 kB / 1.171 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of SimCode: time 1.072e-06/1.637, allocations: 4 kB / 1.171 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of Templates: time 0.1238/1.761, allocations: 72.14 MB / 1.242 GB, free: 12.26 MB / 0.8887 GB " [Timeout remaining time 658] 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=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunctionNM_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.135261151008308]