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: translateModel(ThermofluidStream.Topology.Tests.TestJunctionNM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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=2000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001583/0.001583, allocations: 101.5 kB / 16.41 MB, free: 6.461 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.001692/0.001692, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.309/1.309, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6643/0.6643, allocations: 91.19 MB / 382.4 MB, free: 7.512 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001492, allocations: 79.88 kB / 0.5175 GB, free: 4.117 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3265/0.328, allocations: 67.68 MB / 0.5836 GB, free: 13.91 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.672/1, allocations: 362.1 MB / 0.9372 GB, free: 14.47 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.04192/1.042, allocations: 38.63 MB / 0.9749 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002476/1.045, allocations: 71.5 kB / 0.975 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.005096/1.05, allocations: 2.052 MB / 0.977 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.02166/1.071, allocations: 8.778 MB / 0.9856 GB, free: 12.76 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.01204/1.083, allocations: 4.247 MB / 0.9897 GB, free: 8.5 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.005319/1.089, allocations: 3.907 MB / 0.9935 GB, free: 4.578 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001532/1.09, allocations: 1.178 MB / 0.9947 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005079/1.095, allocations: 2.573 MB / 0.9972 GB, free: 0.7734 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002526/1.098, allocations: 1.767 MB / 0.9989 GB, free: 15 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0004286/1.098, allocations: 247.9 kB / 0.9992 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02762/1.126, allocations: 16.54 MB / 1.015 GB, free: 14.19 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.001291/1.127, allocations: 0.849 MB / 1.016 GB, free: 13.34 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.001829/1.129, allocations: 1.438 MB / 1.018 GB, free: 11.89 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.02425/1.154, allocations: 9.98 MB / 1.027 GB, free: 1.887 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/1.154, allocations: 4 kB / 1.027 GB, free: 1.883 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.114e-06/1.154, allocations: 0 / 1.027 GB, free: 1.883 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.355e-05/1.154, allocations: 0 / 1.027 GB, free: 1.883 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.2842/1.438, allocations: 4.474 MB / 1.032 GB, free: 329.4 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/1.438, allocations: 11.81 kB / 1.032 GB, free: 329.4 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000985/1.439, allocations: 281.4 kB / 1.032 GB, free: 329.3 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003606/1.442, allocations: 1.625 MB / 1.034 GB, free: 328.5 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001318/1.443, allocations: 144.2 kB / 1.034 GB, free: 328.4 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003895/1.443, allocations: 206.9 kB / 1.034 GB, free: 328.3 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006262/1.449, allocations: 3.088 MB / 1.037 GB, free: 327.2 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.051e-05/1.449, allocations: 0.5 kB / 1.037 GB, free: 327.2 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001811/1.45, allocations: 84.12 kB / 1.037 GB, free: 327.1 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003142/1.45, allocations: 185.9 kB / 1.037 GB, free: 327.1 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004196/1.454, allocations: 3.388 MB / 1.04 GB, free: 325.9 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01241/1.467, allocations: 12.4 MB / 1.053 GB, free: 315.6 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00225/1.469, allocations: 1.647 MB / 1.054 GB, free: 314.7 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001534/1.47, allocations: 1.43 MB / 1.056 GB, free: 314 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001852/1.472, allocations: 3.856 MB / 1.059 GB, free: 309.6 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.823e-05/1.472, allocations: 52.44 kB / 1.059 GB, free: 309.5 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=196): time 5.049e-06/1.472, allocations: 0 / 1.059 GB, free: 309.5 MB / 0.7637 GB Notification: Performance of matching and sorting (n=200): time 0.01223/1.485, allocations: 8.527 MB / 1.068 GB, free: 303 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.326e-05/1.485, allocations: 99.11 kB / 1.068 GB, free: 302.9 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001482/1.486, allocations: 1.422 MB / 1.069 GB, free: 301.5 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001884/1.486, allocations: 57.7 kB / 1.069 GB, free: 301.4 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003881/1.487, allocations: 0.8912 MB / 1.07 GB, free: 300.5 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003804/1.487, allocations: 0.6716 MB / 1.071 GB, free: 299.9 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004305/1.488, allocations: 343.3 kB / 1.071 GB, free: 299.5 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 4.274e-05/1.488, allocations: 309.1 kB / 1.071 GB, free: 299.2 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001185/1.489, allocations: 1.035 MB / 1.072 GB, free: 298.2 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001351/1.49, allocations: 1.151 MB / 1.074 GB, free: 297 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002684/1.493, allocations: 2.348 MB / 1.076 GB, free: 294.7 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/1.493, allocations: 1.875 kB / 1.076 GB, free: 294.7 MB / 0.7637 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.004301/1.497, allocations: 3.072 MB / 1.079 GB, free: 291.6 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/1.497, allocations: 4 kB / 1.079 GB, free: 291.6 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/1.497, allocations: 4 kB / 1.079 GB, free: 291.6 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001286/1.499, allocations: 479.5 kB / 1.079 GB, free: 291.1 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001151/1.5, allocations: 331.6 kB / 1.08 GB, free: 290.8 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006082/1.506, allocations: 6.326 MB / 1.086 GB, free: 284.2 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001629/1.507, allocations: 47.86 kB / 1.086 GB, free: 284.2 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003307/1.508, allocations: 119.9 kB / 1.086 GB, free: 284.1 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.001023/1.509, allocations: 0.5205 MB / 1.086 GB, free: 283.6 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000598/1.509, allocations: 208.7 kB / 1.087 GB, free: 283.4 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006112/1.516, allocations: 4.651 MB / 1.091 GB, free: 278.7 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.376e-05/1.516, allocations: 23.28 kB / 1.091 GB, free: 278.7 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.307e-05/1.516, allocations: 8 kB / 1.091 GB, free: 278.6 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.877e-05/1.516, allocations: 11.91 kB / 1.091 GB, free: 278.6 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008757/1.524, allocations: 6.282 MB / 1.097 GB, free: 272.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/1.524, allocations: 4 kB / 1.097 GB, free: 272.3 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009718/1.525, allocations: 311.5 kB / 1.098 GB, free: 272 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001265/1.527, allocations: 0.4941 MB / 1.098 GB, free: 271.6 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001524/1.527, allocations: 79.78 kB / 1.098 GB, free: 271.5 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005852/1.533, allocations: 6.35 MB / 1.104 GB, free: 264.9 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/1.533, allocations: 4 kB / 1.104 GB, free: 264.9 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006562/1.539, allocations: 4.801 MB / 1.109 GB, free: 260.1 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008715/1.54, allocations: 270.5 kB / 1.109 GB, free: 259.8 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003751/1.541, allocations: 43.94 kB / 1.109 GB, free: 259.7 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009785/1.542, allocations: 47.33 kB / 1.109 GB, free: 259.7 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003085/1.542, allocations: 173.2 kB / 1.11 GB, free: 259.5 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002013/1.542, allocations: 107.9 kB / 1.11 GB, free: 259.4 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001217/1.543, allocations: 1.102 MB / 1.111 GB, free: 258.3 MB / 0.7637 GB Notification: Performance of sort global known variables: time 3e-07/1.543, allocations: 0 / 1.111 GB, free: 258.3 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.004462/1.548, allocations: 1.644 MB / 1.112 GB, free: 256.8 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.0042/1.552, allocations: 1.992 MB / 1.114 GB, free: 255.3 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.004408/1.557, allocations: 3.106 MB / 1.117 GB, free: 252.2 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/1.557, allocations: 3.938 kB / 1.117 GB, free: 252.2 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.002621/1.559, allocations: 1.91 MB / 1.119 GB, free: 250.3 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003545/1.563, allocations: 0.8053 MB / 1.12 GB, free: 249.5 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006798/1.57, allocations: 5.063 MB / 1.125 GB, free: 244.6 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009136/1.57, allocations: 1.754 MB / 1.127 GB, free: 242.8 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009287/1.571, allocations: 267.3 kB / 1.127 GB, free: 242.5 MB / 0.7637 GB Notification: Performance of SimCode: time 7.32e-07/1.571, allocations: 0 / 1.127 GB, free: 242.5 MB / 0.7637 GB Notification: Performance of Templates: time 0.07295/1.644, allocations: 77.03 MB / 1.202 GB, free: 165.6 MB / 0.7637 GB make -j1 -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.makefile (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) 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) Reference file matches