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.001219/0.00122, allocations: 103.8 kB / 16.4 MB, free: 6.508 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.001136/0.001136, allocations: 189.7 kB / 17.34 MB, free: 5.742 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.333/1.333, allocations: 222.9 MB / 241 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.7603/0.7603, allocations: 91.19 MB / 382.4 MB, free: 7.516 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001647/0.001647, allocations: 87.86 kB / 0.5175 GB, free: 4.105 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3908/0.3925, allocations: 67.67 MB / 0.5836 GB, free: 13.91 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.7656/1.158, allocations: 362.1 MB / 0.9372 GB, free: 14.45 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.03868/1.197, allocations: 38.64 MB / 0.9749 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002591/1.2, allocations: 67.56 kB / 0.975 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.00467/1.204, allocations: 1.966 MB / 0.9769 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.02348/1.228, allocations: 8.657 MB / 0.9854 GB, free: 12.94 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.01204/1.24, allocations: 4.21 MB / 0.9895 GB, free: 8.715 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.005617/1.245, allocations: 3.914 MB / 0.9933 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001339/1.247, allocations: 1.181 MB / 0.9945 GB, free: 3.562 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005081/1.252, allocations: 2.562 MB / 0.997 GB, free: 0.9922 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00203/1.254, allocations: 1.774 MB / 0.9987 GB, free: 15.21 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0003074/1.254, allocations: 240 kB / 0.9989 GB, free: 14.98 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0318/1.286, allocations: 16.51 MB / 1.015 GB, free: 14.43 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.001602/1.288, allocations: 0.8645 MB / 1.016 GB, free: 13.57 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.002308/1.29, allocations: 1.431 MB / 1.017 GB, free: 12.13 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.03163/1.322, allocations: 9.98 MB / 1.027 GB, free: 2.125 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 8.125e-06/1.322, allocations: 0 / 1.027 GB, free: 2.125 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.805e-06/1.322, allocations: 0 / 1.027 GB, free: 2.125 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 0.0001515/1.322, allocations: 4 kB / 1.027 GB, free: 2.121 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.3835/1.705, allocations: 4.477 MB / 1.031 GB, free: 329.4 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 5.57e-05/1.705, allocations: 9.938 kB / 1.031 GB, free: 329.4 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008474/1.706, allocations: 282.6 kB / 1.032 GB, free: 329.3 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003276/1.71, allocations: 1.625 MB / 1.033 GB, free: 328.4 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001239/1.71, allocations: 146.5 kB / 1.033 GB, free: 328.4 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003526/1.71, allocations: 205 kB / 1.034 GB, free: 328.3 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005679/1.716, allocations: 3.09 MB / 1.037 GB, free: 327.1 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.907e-05/1.716, allocations: 0.6562 kB / 1.037 GB, free: 327.1 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001819/1.716, allocations: 79.44 kB / 1.037 GB, free: 327.1 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003005/1.716, allocations: 181.8 kB / 1.037 GB, free: 327.1 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003928/1.72, allocations: 3.388 MB / 1.04 GB, free: 325.9 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01098/1.731, allocations: 12.41 MB / 1.052 GB, free: 315.6 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001991/1.733, allocations: 1.641 MB / 1.054 GB, free: 314.7 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001379/1.735, allocations: 1.438 MB / 1.055 GB, free: 314 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001776/1.736, allocations: 3.846 MB / 1.059 GB, free: 309.5 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.891e-05/1.737, allocations: 55.53 kB / 1.059 GB, free: 309.5 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=196): time 5.731e-06/1.737, allocations: 3.938 kB / 1.059 GB, free: 309.5 MB / 0.7637 GB Notification: Performance of matching and sorting (n=200): time 0.01166/1.748, allocations: 8.516 MB / 1.067 GB, free: 303 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.58e-05/1.748, allocations: 110.2 kB / 1.068 GB, free: 302.9 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001376/1.75, allocations: 1.422 MB / 1.069 GB, free: 301.5 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001071/1.75, allocations: 57.53 kB / 1.069 GB, free: 301.4 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004226/1.75, allocations: 0.8951 MB / 1.07 GB, free: 300.5 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003467/1.751, allocations: 0.6714 MB / 1.071 GB, free: 299.8 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004314/1.751, allocations: 343.4 kB / 1.071 GB, free: 299.5 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 5.176e-05/1.751, allocations: 305.8 kB / 1.071 GB, free: 299.2 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001126/1.752, allocations: 1.032 MB / 1.072 GB, free: 298.2 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001286/1.753, allocations: 1.159 MB / 1.073 GB, free: 297 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002592/1.756, allocations: 2.348 MB / 1.076 GB, free: 294.6 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/1.756, allocations: 0 / 1.076 GB, free: 294.6 MB / 0.7637 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.003913/1.76, allocations: 3.073 MB / 1.079 GB, free: 291.6 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/1.76, allocations: 4 kB / 1.079 GB, free: 291.6 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/1.76, allocations: 0 / 1.079 GB, free: 291.6 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00116/1.761, allocations: 483.9 kB / 1.079 GB, free: 291.1 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001008/1.762, allocations: 330.6 kB / 1.079 GB, free: 290.8 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005731/1.768, allocations: 6.331 MB / 1.086 GB, free: 284.2 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001403/1.769, allocations: 48 kB / 1.086 GB, free: 284.2 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002622/1.77, allocations: 115.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.0009679/1.771, allocations: 0.5202 MB / 1.086 GB, free: 283.5 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004516/1.771, allocations: 201.5 kB / 1.086 GB, free: 283.3 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005739/1.777, allocations: 4.661 MB / 1.091 GB, free: 278.6 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.883e-05/1.777, allocations: 20 kB / 1.091 GB, free: 278.6 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/1.777, allocations: 8 kB / 1.091 GB, free: 278.6 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.892e-05/1.777, allocations: 15.19 kB / 1.091 GB, free: 278.6 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007925/1.785, allocations: 6.276 MB / 1.097 GB, free: 272.3 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.338e-06/1.785, allocations: 4 kB / 1.097 GB, free: 272.3 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009102/1.786, allocations: 303.5 kB / 1.097 GB, free: 272 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001129/1.787, allocations: 0.4919 MB / 1.098 GB, free: 271.5 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001345/1.787, allocations: 87.08 kB / 1.098 GB, free: 271.4 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00557/1.793, allocations: 6.354 MB / 1.104 GB, free: 264.8 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/1.793, allocations: 7.938 kB / 1.104 GB, free: 264.8 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00561/1.798, allocations: 4.792 MB / 1.109 GB, free: 260 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005459/1.799, allocations: 269.8 kB / 1.109 GB, free: 259.7 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002797/1.799, allocations: 51.77 kB / 1.109 GB, free: 259.7 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008291/1.8, allocations: 39.98 kB / 1.109 GB, free: 259.6 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002429/1.8, allocations: 176.5 kB / 1.109 GB, free: 259.5 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001891/1.8, allocations: 107.9 kB / 1.109 GB, free: 259.4 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001149/1.802, allocations: 1.106 MB / 1.111 GB, free: 258.3 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.8e-07/1.802, allocations: 0 / 1.111 GB, free: 258.3 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.004218/1.806, allocations: 1.642 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.003686/1.81, allocations: 1.994 MB / 1.114 GB, free: 255.3 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.003978/1.814, allocations: 3.105 MB / 1.117 GB, free: 252.2 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/1.814, allocations: 0 / 1.117 GB, free: 252.2 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.002292/1.816, allocations: 1.913 MB / 1.119 GB, free: 250.2 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00312/1.819, allocations: 0.8028 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.00648/1.825, allocations: 5.062 MB / 1.125 GB, free: 244.6 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009139/1.826, allocations: 1.76 MB / 1.126 GB, free: 242.8 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007623/1.827, allocations: 267.3 kB / 1.127 GB, free: 242.5 MB / 0.7637 GB Notification: Performance of SimCode: time 7.52e-07/1.827, allocations: 0 / 1.127 GB, free: 242.5 MB / 0.7637 GB Notification: Performance of Templates: time 0.0749/1.902, 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