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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008322/0.008322, allocations: 102 kB / 15.73 MB, free: 6.062 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001894/0.001894, allocations: 192 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7135/0.7135, allocations: 91.19 MB / 381.7 MB, free: 7.512 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00232/0.00232, allocations: 87.86 kB / 0.5164 GB, free: 4.59 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3057/0.308, allocations: 67.68 MB / 0.5825 GB, free: 13.5 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.665/0.9731, allocations: 362.1 MB / 0.9361 GB, free: 14.44 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.04814/1.021, allocations: 38.62 MB / 0.9738 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002387/1.024, allocations: 67.56 kB / 0.9738 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.005183/1.029, allocations: 1.97 MB / 0.9758 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.02171/1.051, allocations: 8.654 MB / 0.9842 GB, free: 12.96 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.01146/1.062, allocations: 4.227 MB / 0.9883 GB, free: 8.719 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.00687/1.069, allocations: 3.903 MB / 0.9922 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002515/1.072, allocations: 1.178 MB / 0.9933 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007525/1.079, allocations: 2.53 MB / 0.9958 GB, free: 1.039 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003275/1.082, allocations: 1.767 MB / 0.9975 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0007265/1.083, allocations: 244 kB / 0.9977 GB, free: 15.03 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03286/1.116, allocations: 16.51 MB / 1.014 GB, free: 14.48 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.001384/1.118, allocations: 0.8606 MB / 1.015 GB, free: 13.62 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.002105/1.12, allocations: 1.431 MB / 1.016 GB, free: 12.18 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.02381/1.143, allocations: 10.02 MB / 1.026 GB, free: 2.133 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/1.144, allocations: 4 kB / 1.026 GB, free: 2.129 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.154e-06/1.144, allocations: 0 / 1.026 GB, free: 2.129 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.151e-05/1.144, allocations: 0 / 1.026 GB, free: 2.129 MB / 0.7637 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.2591/1.403, allocations: 4.625 MB / 1.03 GB, free: 328.7 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 5.243e-05/1.403, allocations: 12.66 kB / 1.03 GB, free: 328.7 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000441/1.403, allocations: 280.1 kB / 1.031 GB, free: 328.6 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009754/1.404, allocations: 303.4 kB / 1.031 GB, free: 328.4 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003139/1.407, allocations: 1.649 MB / 1.033 GB, free: 327.7 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001284/1.407, allocations: 142.9 kB / 1.033 GB, free: 327.6 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003548/1.408, allocations: 195.5 kB / 1.033 GB, free: 327.6 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005511/1.413, allocations: 3.092 MB / 1.036 GB, free: 326.4 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.05e-05/1.413, allocations: 8.375 kB / 1.036 GB, free: 326.4 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001649/1.414, allocations: 79.11 kB / 1.036 GB, free: 326.3 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003062/1.414, allocations: 181.6 kB / 1.036 GB, free: 326.3 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004185/1.418, allocations: 3.387 MB / 1.039 GB, free: 325.2 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01006/1.428, allocations: 12.43 MB / 1.052 GB, free: 314.9 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001935/1.43, allocations: 1.643 MB / 1.053 GB, free: 314 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001373/1.432, allocations: 1.432 MB / 1.055 GB, free: 313.2 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001592/1.433, allocations: 3.848 MB / 1.058 GB, free: 308.8 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/1.433, allocations: 53.16 kB / 1.058 GB, free: 308.7 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=196): time 4.188e-06/1.433, allocations: 3.938 kB / 1.058 GB, free: 308.7 MB / 0.7637 GB Notification: Performance of matching and sorting (n=200): time 0.01132/1.445, allocations: 8.588 MB / 1.067 GB, free: 302.8 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.668e-05/1.445, allocations: 99.11 kB / 1.067 GB, free: 302.7 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001356/1.446, allocations: 1.422 MB / 1.068 GB, free: 301.3 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001238/1.446, allocations: 53.7 kB / 1.068 GB, free: 301.2 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003853/1.446, allocations: 0.9167 MB / 1.069 GB, free: 300.4 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003446/1.447, allocations: 0.7033 MB / 1.07 GB, free: 299.8 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00045/1.447, allocations: 346.9 kB / 1.07 GB, free: 299.4 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 3.581e-05/1.447, allocations: 301.1 kB / 1.071 GB, free: 299.1 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001168/1.448, allocations: 1.031 MB / 1.072 GB, free: 298.1 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001303/1.45, allocations: 1.155 MB / 1.073 GB, free: 297 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002604/1.452, allocations: 2.352 MB / 1.075 GB, free: 294.6 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/1.452, allocations: 0 / 1.075 GB, free: 294.6 MB / 0.7637 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.004078/1.457, allocations: 3.085 MB / 1.078 GB, free: 291.5 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/1.457, allocations: 4 kB / 1.078 GB, free: 291.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/1.457, allocations: 0 / 1.078 GB, free: 291.5 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001176/1.458, allocations: 476.7 kB / 1.078 GB, free: 291 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001014/1.459, allocations: 335.1 kB / 1.079 GB, free: 290.7 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005556/1.464, allocations: 6.352 MB / 1.085 GB, free: 284.1 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001077/1.465, allocations: 47.55 kB / 1.085 GB, free: 284.1 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002174/1.466, allocations: 119.9 kB / 1.085 GB, free: 284 MB / 0.7637 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.0007719/1.466, allocations: 0.5167 MB / 1.086 GB, free: 283.4 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003809/1.467, allocations: 218.6 kB / 1.086 GB, free: 283.2 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00577/1.473, allocations: 4.657 MB / 1.09 GB, free: 278.6 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.739e-05/1.473, allocations: 20 kB / 1.09 GB, free: 278.5 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/1.473, allocations: 8 kB / 1.09 GB, free: 278.5 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.675e-05/1.473, allocations: 7.969 kB / 1.09 GB, free: 278.5 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007794/1.48, allocations: 6.281 MB / 1.097 GB, free: 272.2 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.145e-06/1.481, allocations: 4 kB / 1.097 GB, free: 272.2 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009135/1.481, allocations: 303.5 kB / 1.097 GB, free: 271.9 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001156/1.483, allocations: 0.4909 MB / 1.097 GB, free: 271.5 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001402/1.483, allocations: 79.94 kB / 1.097 GB, free: 271.4 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005603/1.488, allocations: 6.357 MB / 1.104 GB, free: 264.8 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/1.488, allocations: 7.938 kB / 1.104 GB, free: 264.8 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00588/1.494, allocations: 4.803 MB / 1.108 GB, free: 259.9 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005445/1.495, allocations: 279.7 kB / 1.109 GB, free: 259.7 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003016/1.495, allocations: 53.73 kB / 1.109 GB, free: 259.6 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008595/1.496, allocations: 39.98 kB / 1.109 GB, free: 259.6 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002736/1.496, allocations: 173.2 kB / 1.109 GB, free: 259.4 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001884/1.497, allocations: 111.8 kB / 1.109 GB, free: 259.3 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001108/1.498, allocations: 1.099 MB / 1.11 GB, free: 258.2 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.1e-07/1.498, allocations: 0 / 1.11 GB, free: 258.2 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.003489/1.501, allocations: 1.669 MB / 1.112 GB, free: 256.7 MB / 0.7637 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.00916/1.51, allocations: 7.362 MB / 1.119 GB, free: 249.6 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.00398/1.514, allocations: 3.121 MB / 1.122 GB, free: 246.5 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/1.514, allocations: 0 / 1.122 GB, free: 246.5 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.002443/1.517, allocations: 1.916 MB / 1.124 GB, free: 244.5 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003401/1.52, allocations: 0.804 MB / 1.125 GB, free: 243.8 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02482/1.545, allocations: 19.98 MB / 1.144 GB, free: 223.8 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001239/1.546, allocations: 1.762 MB / 1.146 GB, free: 222 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.002315/1.549, allocations: 1.283 MB / 1.147 GB, free: 220.7 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001124/1.55, allocations: 1.038 MB / 1.148 GB, free: 219.6 MB / 0.7637 GB Notification: Performance of SimCode: time 1.012e-06/1.55, allocations: 4 kB / 1.148 GB, free: 219.6 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1223/1.672, allocations: 92.51 MB / 1.238 GB, free: 127.5 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.96/17.63, allocations: 8.047 kB / 1.238 GB, free: 127.5 MB / 0.7637 GB (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 & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM_res.csv --start-time 0 --stop-time 1 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunctionNM.fmu > ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM_res.csv","/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) Reference file matches