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.001685/0.001685, 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.002194/0.002194, allocations: 215.5 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.457/1.457, allocations: 230.6 MB / 256 MB, free: 8.039 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.8066/0.8066, allocations: 94.56 MB / 407 MB, free: 9.223 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: "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunctionNM,fileNamePrefix="ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunctionNM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunctionNM,fileNamePrefix="ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunctionNM",fmuType="me",version="2.0",platforms={"static"}) [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.00232/0.00232, allocations: 87.66 kB / 0.555 GB, free: 38.68 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1232/0.1255, allocations: 73.05 MB / 0.6263 GB, free: 0.5273 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.797/0.9225, allocations: 365.4 MB / 0.9831 GB, free: 1.492 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.04783/0.9703, allocations: 39.09 MB / 1.021 GB, free: 10.27 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002552/0.9729, allocations: 107 kB / 1.021 GB, free: 10.17 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.005433/0.9783, allocations: 2.08 MB / 1.023 GB, free: 8.078 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.02536/1.004, allocations: 8.835 MB / 1.032 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.01533/1.019, allocations: 4.352 MB / 1.036 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.007388/1.026, allocations: 4.031 MB / 1.04 GB, free: 6.797 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001506/1.028, allocations: 0.6451 MB / 1.041 GB, free: 6.102 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007401/1.035, allocations: 2.714 MB / 1.043 GB, free: 3.379 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00376/1.039, allocations: 1.86 MB / 1.045 GB, free: 1.512 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.0005641/1.04, allocations: 248 kB / 1.046 GB, free: 1.27 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.5682/1.608, allocations: 17.37 MB / 1.063 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.001648/1.61, allocations: 0.866 MB / 1.063 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.003048/1.613, allocations: 1.442 MB / 1.065 GB, free: 10.46 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.03036/1.643, allocations: 10.09 MB / 1.075 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 9.287e-06/1.643, allocations: 2.094 kB / 1.075 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.845e-06/1.643, allocations: 0 / 1.075 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 0.0001287/1.643, allocations: 0.875 kB / 1.075 GB, free: 9.875 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.01509/1.658, allocations: 4.601 MB / 1.079 GB, free: 7.762 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/1.658, allocations: 10.94 kB / 1.079 GB, free: 7.762 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004336/1.659, allocations: 281.2 kB / 1.079 GB, free: 7.715 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008517/1.659, allocations: 305.8 kB / 1.08 GB, free: 7.559 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003753/1.663, allocations: 1.584 MB / 1.081 GB, free: 7.105 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001175/1.663, allocations: 147.5 kB / 1.081 GB, free: 7.102 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003445/1.664, allocations: 198.2 kB / 1.082 GB, free: 7.098 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004864/1.669, allocations: 3.13 MB / 1.085 GB, free: 6.961 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.215e-05/1.669, allocations: 0.75 kB / 1.085 GB, free: 6.961 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001772/1.669, allocations: 75.33 kB / 1.085 GB, free: 6.961 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002253/1.669, allocations: 187.9 kB / 1.085 GB, free: 6.957 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004664/1.674, allocations: 3.459 MB / 1.088 GB, free: 6.941 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01736/1.691, allocations: 12.39 MB / 1.1 GB, free: 15.85 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002544/1.694, allocations: 1.494 MB / 1.102 GB, free: 15.79 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001647/1.695, allocations: 1.285 MB / 1.103 GB, free: 15.77 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001264/1.696, allocations: 0.4938 MB / 1.104 GB, free: 15.77 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.189e-05/1.697, allocations: 57.5 kB / 1.104 GB, free: 15.73 MB / 0.795 GB Notification: Performance of pre-optimization done (n=196): time 4.859e-06/1.697, allocations: 0 / 1.104 GB, free: 15.73 MB / 0.795 GB Notification: Performance of matching and sorting (n=200): time 0.01398/1.711, allocations: 7.82 MB / 1.111 GB, free: 14.64 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.847e-05/1.711, allocations: 112.1 kB / 1.111 GB, free: 14.54 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001874/1.712, allocations: 1.458 MB / 1.113 GB, free: 14.38 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 0.0002413/1.713, allocations: 60.55 kB / 1.113 GB, free: 14.35 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006279/1.713, allocations: 0.9269 MB / 1.114 GB, free: 14.04 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005576/1.714, allocations: 0.7084 MB / 1.114 GB, free: 13.57 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005053/1.714, allocations: 347.3 kB / 1.115 GB, free: 13.55 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001461/1.715, allocations: 301.1 kB / 1.115 GB, free: 13.26 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001478/1.716, allocations: 1.033 MB / 1.116 GB, free: 13.25 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001698/1.718, allocations: 1.155 MB / 1.117 GB, free: 13.22 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003283/1.721, allocations: 2.35 MB / 1.119 GB, free: 13.18 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/1.721, allocations: 0 / 1.119 GB, free: 13.18 MB / 0.795 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005056/1.726, allocations: 3.059 MB / 1.122 GB, free: 12.96 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 3.287e-05/1.726, allocations: 10.69 kB / 1.122 GB, free: 12.96 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/1.726, allocations: 3.75 kB / 1.122 GB, free: 12.96 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00142/1.728, allocations: 480.9 kB / 1.123 GB, free: 12.94 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001146/1.729, allocations: 334.4 kB / 1.123 GB, free: 12.94 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007347/1.736, allocations: 6.148 MB / 1.129 GB, free: 10.11 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001699/1.738, allocations: 47.89 kB / 1.129 GB, free: 10.11 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003603/1.738, allocations: 114.5 kB / 1.129 GB, free: 10.11 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.001221/1.739, allocations: 0.5244 MB / 1.13 GB, free: 9.988 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006248/1.74, allocations: 217.7 kB / 1.13 GB, free: 9.871 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006766/1.747, allocations: 4.638 MB / 1.135 GB, free: 9.469 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.343e-05/1.747, allocations: 23.69 kB / 1.135 GB, free: 9.469 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-05/1.747, allocations: 7.922 kB / 1.135 GB, free: 9.469 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.239e-05/1.747, allocations: 13.88 kB / 1.135 GB, free: 9.469 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01053/1.757, allocations: 6.255 MB / 1.141 GB, free: 8.938 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.063e-05/1.757, allocations: 0 / 1.141 GB, free: 8.938 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001025/1.758, allocations: 306.8 kB / 1.141 GB, free: 8.938 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001404/1.76, allocations: 0.4887 MB / 1.142 GB, free: 8.902 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000186/1.76, allocations: 82.83 kB / 1.142 GB, free: 8.902 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007162/1.767, allocations: 6.156 MB / 1.148 GB, free: 6.059 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/1.767, allocations: 3.375 kB / 1.148 GB, free: 6.059 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007646/1.775, allocations: 4.794 MB / 1.152 GB, free: 4.289 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009213/1.776, allocations: 204.2 kB / 1.153 GB, free: 4.121 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003582/1.776, allocations: 41.55 kB / 1.153 GB, free: 4.109 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009421/1.777, allocations: 47.72 kB / 1.153 GB, free: 4.094 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003556/1.777, allocations: 179.3 kB / 1.153 GB, free: 4.023 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002371/1.778, allocations: 107.6 kB / 1.153 GB, free: 3.953 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001519/1.779, allocations: 1.125 MB / 1.154 GB, free: 3.324 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/1.779, allocations: 1.125 kB / 1.154 GB, free: 3.324 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.005986/1.785, allocations: 1.686 MB / 1.156 GB, free: 1.898 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.01446/1.8, allocations: 7.333 MB / 1.163 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.006157/1.806, allocations: 2.974 MB / 1.166 GB, free: 9.656 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/1.806, allocations: 0.5938 kB / 1.166 GB, free: 9.656 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0035/1.809, allocations: 1.802 MB / 1.167 GB, free: 7.883 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004074/1.813, allocations: 0.8187 MB / 1.168 GB, free: 7.098 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03788/1.851, allocations: 20.12 MB / 1.188 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001814/1.853, allocations: 1.776 MB / 1.19 GB, free: 1.082 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.003294/1.856, allocations: 1.281 MB / 1.191 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001811/1.858, allocations: 1.062 MB / 1.192 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of SimCode: time 1.674e-06/1.858, allocations: 0 / 1.192 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1934/2.052, allocations: 95.08 MB / 1.285 GB, free: 352 kB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.51/20.56, allocations: 8.047 kB / 1.285 GB, free: 344 kB / 0.92 GB " [Timeout remaining time 639] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunctionNM_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=1200 --tolerance=1e-06 ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunctionNM.fmu > ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunctionNM_ref.mat","/var/lib/jenkins1/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: 24.613604421028867]