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.007777/0.007778, allocations: 102.2 kB / 15.73 MB, free: 6.484 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.001936/0.001936, allocations: 196.3 kB / 16.68 MB, free: 6.375 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.678/0.678, allocations: 91.19 MB / 381.7 MB, free: 9.371 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001618/0.001618, allocations: 79.88 kB / 0.5168 GB, free: 9.02 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1359/0.1375, allocations: 67.69 MB / 0.583 GB, free: 5.242 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 1.046/1.184, allocations: 362.1 MB / 0.9365 GB, free: 0.793 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.04218/1.226, allocations: 38.63 MB / 0.9742 GB, free: 13.65 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002481/1.228, allocations: 69.88 kB / 0.9743 GB, free: 13.65 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.005077/1.233, allocations: 2.054 MB / 0.9763 GB, free: 13.07 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.02237/1.256, allocations: 8.771 MB / 0.9849 GB, free: 10.38 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.01191/1.268, allocations: 4.251 MB / 0.989 GB, free: 7.289 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.005667/1.274, allocations: 3.9 MB / 0.9928 GB, free: 4.355 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001915/1.275, allocations: 1.193 MB / 0.994 GB, free: 3.156 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006047/1.282, allocations: 2.579 MB / 0.9965 GB, free: 0.9453 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003738/1.285, allocations: 1.762 MB / 0.9982 GB, free: 15.36 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.001062/1.286, allocations: 244 kB / 0.9985 GB, free: 15.12 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03597/1.322, allocations: 16.54 MB / 1.015 GB, free: 0.5781 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.001942/1.324, allocations: 0.8509 MB / 1.015 GB, free: 15.76 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.004106/1.329, allocations: 1.436 MB / 1.017 GB, free: 14.34 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.02939/1.358, allocations: 9.986 MB / 1.027 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/1.358, allocations: 0 / 1.027 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.793e-06/1.358, allocations: 4 kB / 1.027 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.321e-05/1.358, allocations: 0 / 1.027 GB, free: 5.043 MB / 0.7169 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.01132/1.369, allocations: 4.481 MB / 1.031 GB, free: 0.5625 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/1.369, allocations: 12.03 kB / 1.031 GB, free: 0.5508 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000728/1.37, allocations: 288.5 kB / 1.031 GB, free: 272 kB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002821/1.373, allocations: 1.626 MB / 1.033 GB, free: 14.67 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/1.373, allocations: 148.6 kB / 1.033 GB, free: 14.54 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002947/1.373, allocations: 193.8 kB / 1.033 GB, free: 14.35 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004742/1.378, allocations: 3.086 MB / 1.036 GB, free: 11.25 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.973e-05/1.378, allocations: 3.656 kB / 1.036 GB, free: 11.25 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000161/1.378, allocations: 83.88 kB / 1.036 GB, free: 11.18 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002398/1.379, allocations: 183.9 kB / 1.036 GB, free: 11 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004679/1.383, allocations: 3.387 MB / 1.04 GB, free: 7.617 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01585/1.399, allocations: 12.4 MB / 1.052 GB, free: 10.14 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002774/1.402, allocations: 1.647 MB / 1.053 GB, free: 8.48 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001855/1.404, allocations: 1.425 MB / 1.055 GB, free: 7.059 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002948/1.407, allocations: 3.844 MB / 1.059 GB, free: 2.402 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.705e-05/1.407, allocations: 59.69 kB / 1.059 GB, free: 2.336 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=196): time 7.323e-06/1.407, allocations: 7.984 kB / 1.059 GB, free: 2.328 MB / 0.7481 GB Notification: Performance of matching and sorting (n=200): time 0.01448/1.421, allocations: 8.537 MB / 1.067 GB, free: 9.582 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.33e-05/1.422, allocations: 99.11 kB / 1.067 GB, free: 9.469 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00191/1.423, allocations: 1.422 MB / 1.069 GB, free: 8.043 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001554/1.424, allocations: 57.7 kB / 1.069 GB, free: 7.98 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007419/1.424, allocations: 0.8912 MB / 1.069 GB, free: 7.078 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005585/1.425, allocations: 0.6734 MB / 1.07 GB, free: 6.414 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005527/1.426, allocations: 342.8 kB / 1.07 GB, free: 6.078 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 8.84e-05/1.426, allocations: 301.1 kB / 1.071 GB, free: 5.781 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00152/1.427, allocations: 1.035 MB / 1.072 GB, free: 4.746 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001754/1.429, allocations: 1.155 MB / 1.073 GB, free: 3.582 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003437/1.432, allocations: 2.348 MB / 1.075 GB, free: 1.23 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/1.432, allocations: 0 / 1.075 GB, free: 1.23 MB / 0.7637 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005373/1.438, allocations: 3.072 MB / 1.078 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/1.438, allocations: 8 kB / 1.078 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.531e-05/1.438, allocations: 0 / 1.078 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001612/1.439, allocations: 472.7 kB / 1.079 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001182/1.441, allocations: 335.9 kB / 1.079 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007714/1.448, allocations: 6.339 MB / 1.085 GB, free: 6.805 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00133/1.45, allocations: 44.05 kB / 1.085 GB, free: 6.762 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000315/1.45, allocations: 119.9 kB / 1.085 GB, free: 6.645 MB / 0.7794 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.001067/1.451, allocations: 0.5257 MB / 1.086 GB, free: 6.129 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000512/1.452, allocations: 197.6 kB / 1.086 GB, free: 5.934 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007501/1.459, allocations: 4.665 MB / 1.091 GB, free: 1.254 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.19e-05/1.459, allocations: 20 kB / 1.091 GB, free: 1.234 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.388e-05/1.459, allocations: 7.984 kB / 1.091 GB, free: 1.227 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.241e-05/1.459, allocations: 11.97 kB / 1.091 GB, free: 1.215 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01058/1.47, allocations: 6.286 MB / 1.097 GB, free: 10.93 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.848e-06/1.47, allocations: 0 / 1.097 GB, free: 10.93 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001109/1.471, allocations: 303.6 kB / 1.097 GB, free: 10.63 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001475/1.473, allocations: 496.6 kB / 1.097 GB, free: 10.14 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001704/1.473, allocations: 79.06 kB / 1.098 GB, free: 10.07 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007592/1.48, allocations: 6.354 MB / 1.104 GB, free: 3.445 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/1.48, allocations: 256 / 1.104 GB, free: 3.445 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007474/1.488, allocations: 4.8 MB / 1.108 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006291/1.488, allocations: 270.5 kB / 1.109 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003027/1.489, allocations: 51.06 kB / 1.109 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000893/1.49, allocations: 43.98 kB / 1.109 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003497/1.49, allocations: 157.8 kB / 1.109 GB, free: 14.07 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002475/1.49, allocations: 118.1 kB / 1.109 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.00153/1.492, allocations: 1.106 MB / 1.11 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/1.492, allocations: 0 / 1.11 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.004642/1.496, allocations: 1.647 MB / 1.112 GB, free: 11.22 MB / 0.8106 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.004743/1.501, allocations: 1.995 MB / 1.114 GB, free: 9.355 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.005553/1.507, allocations: 3.103 MB / 1.117 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.064e-05/1.507, allocations: 11.94 kB / 1.117 GB, free: 6.215 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.00324/1.51, allocations: 1.906 MB / 1.119 GB, free: 4.289 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003634/1.514, allocations: 0.8033 MB / 1.119 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008165/1.522, allocations: 4.961 MB / 1.124 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001407/1.523, allocations: 1.758 MB / 1.126 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.002783/1.526, allocations: 1.293 MB / 1.127 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007171/1.527, allocations: 235.3 kB / 1.127 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of SimCode: time 2.144e-06/1.527, allocations: 0 / 1.127 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of Templates: time 0.3808/1.908, allocations: 70.16 MB / 1.196 GB, free: 366.6 MB / 0.8419 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches