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/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/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.001277/0.001277, allocations: 100.3 kB / 15.78 MB, free: 5.93 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.00123/0.00123, allocations: 196.2 kB / 16.72 MB, free: 5.793 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.425/1.425, allocations: 225.6 MB / 243.1 MB, free: 3.734 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0/package.mo): time 0.614/0.614, allocations: 90.29 MB / 386.3 MB, free: 6.691 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002354/0.002354, allocations: 79.88 kB / 0.5274 GB, free: 5.34 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1446/0.147, allocations: 70.82 MB / 0.5966 GB, free: 14.37 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 1.088/1.235, allocations: 363 MB / 0.9511 GB, free: 1.328 MB / 0.7012 GB Notification: Performance of NFInst.instExpressions: time 0.03384/1.269, allocations: 38.65 MB / 0.9889 GB, free: 0.4922 MB / 0.7012 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001899/1.271, allocations: 25.16 kB / 0.9889 GB, free: 0.4922 MB / 0.7012 GB Notification: Performance of NFTyping.typeComponents: time 0.004117/1.275, allocations: 2.05 MB / 0.9909 GB, free: 432 kB / 0.7012 GB Notification: Performance of NFTyping.typeBindings: time 0.02042/1.296, allocations: 8.684 MB / 0.9994 GB, free: 15.33 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.01058/1.306, allocations: 4.269 MB / 1.004 GB, free: 14.14 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.004775/1.311, allocations: 3.694 MB / 1.007 GB, free: 13.7 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001267/1.312, allocations: 0.8138 MB / 1.008 GB, free: 13.46 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005209/1.318, allocations: 2.45 MB / 1.01 GB, free: 12.89 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003354/1.321, allocations: 1.811 MB / 1.012 GB, free: 12.3 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0008644/1.322, allocations: 245.9 kB / 1.012 GB, free: 12.3 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.03496/1.357, allocations: 17.11 MB / 1.029 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.001759/1.358, allocations: 0.8507 MB / 1.03 GB, free: 3.266 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.003568/1.362, allocations: 1.361 MB / 1.031 GB, free: 1.926 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.03171/1.394, allocations: 9.785 MB / 1.041 GB, free: 8.809 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/1.394, allocations: 0 / 1.041 GB, free: 8.809 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.803e-06/1.394, allocations: 0 / 1.041 GB, free: 8.809 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 0.0001115/1.394, allocations: 0 / 1.041 GB, free: 8.809 MB / 0.7325 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.01217/1.406, allocations: 4.345 MB / 1.045 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/1.406, allocations: 12.03 kB / 1.045 GB, free: 4.41 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007854/1.407, allocations: 266.3 kB / 1.045 GB, free: 4.148 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002301/1.409, allocations: 1.222 MB / 1.046 GB, free: 2.945 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001168/1.409, allocations: 139.3 kB / 1.047 GB, free: 2.812 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003812/1.41, allocations: 208.2 kB / 1.047 GB, free: 2.617 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005382/1.415, allocations: 3.092 MB / 1.05 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.16e-05/1.415, allocations: 0 / 1.05 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000188/1.415, allocations: 77.47 kB / 1.05 GB, free: 15.45 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002612/1.416, allocations: 185.9 kB / 1.05 GB, free: 15.27 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005421/1.421, allocations: 3.381 MB / 1.053 GB, free: 11.89 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01685/1.438, allocations: 12.34 MB / 1.065 GB, free: 14.48 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002915/1.441, allocations: 1.503 MB / 1.067 GB, free: 12.97 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002152/1.443, allocations: 1.281 MB / 1.068 GB, free: 11.68 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003447/1.446, allocations: 3.852 MB / 1.072 GB, free: 7.016 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.827e-05/1.446, allocations: 48.56 kB / 1.072 GB, free: 6.957 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=196): time 5.2e-06/1.446, allocations: 4 kB / 1.072 GB, free: 6.953 MB / 0.7637 GB Notification: Performance of matching and sorting (n=200): time 0.01671/1.463, allocations: 8.427 MB / 1.08 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.569e-05/1.463, allocations: 103 kB / 1.08 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001859/1.465, allocations: 1.167 MB / 1.081 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 0.0001636/1.465, allocations: 59.34 kB / 1.081 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006351/1.466, allocations: 0.7772 MB / 1.082 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006698/1.466, allocations: 0.7063 MB / 1.083 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006185/1.467, allocations: 345.1 kB / 1.083 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001322/1.467, allocations: 301.1 kB / 1.084 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00178/1.469, allocations: 1.035 MB / 1.085 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001944/1.471, allocations: 1.166 MB / 1.086 GB, free: 8.648 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00393/1.475, allocations: 2.349 MB / 1.088 GB, free: 6.293 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/1.475, allocations: 3.938 kB / 1.088 GB, free: 6.289 MB / 0.7794 GB Notification: Performance of matching and sorting (n=212) (initialization): time 0.005943/1.481, allocations: 3.019 MB / 1.091 GB, free: 3.285 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.927e-05/1.481, allocations: 17.48 kB / 1.091 GB, free: 3.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/1.481, allocations: 0 / 1.091 GB, free: 3.27 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001617/1.482, allocations: 475.3 kB / 1.091 GB, free: 2.805 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/1.484, allocations: 329.7 kB / 1.092 GB, free: 2.496 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009267/1.493, allocations: 6.362 MB / 1.098 GB, free: 11.89 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001216/1.494, allocations: 50.48 kB / 1.098 GB, free: 11.85 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004338/1.495, allocations: 115.9 kB / 1.098 GB, free: 11.73 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.001117/1.496, allocations: 0.508 MB / 1.099 GB, free: 11.23 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006219/1.496, allocations: 174.9 kB / 1.099 GB, free: 11.06 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008661/1.505, allocations: 4.608 MB / 1.103 GB, free: 6.441 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.893e-05/1.505, allocations: 20 kB / 1.103 GB, free: 6.422 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.586e-05/1.505, allocations: 8 kB / 1.103 GB, free: 6.414 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.281e-05/1.505, allocations: 11.97 kB / 1.103 GB, free: 6.402 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01166/1.517, allocations: 6.173 MB / 1.109 GB, free: 240 kB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.251e-05/1.517, allocations: 3.938 kB / 1.109 GB, free: 236 kB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001202/1.518, allocations: 311.5 kB / 1.11 GB, free: 15.94 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00165/1.52, allocations: 496.5 kB / 1.11 GB, free: 15.45 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002075/1.52, allocations: 79.94 kB / 1.11 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008821/1.529, allocations: 6.362 MB / 1.116 GB, free: 8.77 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/1.529, allocations: 6.594 kB / 1.116 GB, free: 8.766 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008694/1.537, allocations: 4.759 MB / 1.121 GB, free: 3.988 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006231/1.538, allocations: 259.8 kB / 1.121 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000459/1.539, allocations: 40 kB / 1.121 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/1.54, allocations: 50.86 kB / 1.121 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003825/1.54, allocations: 169 kB / 1.122 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002685/1.54, allocations: 107.9 kB / 1.122 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.001614/1.542, allocations: 0.9393 MB / 1.123 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/1.542, allocations: 4 kB / 1.123 GB, free: 2.414 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.005189/1.547, allocations: 1.663 MB / 1.124 GB, free: 0.75 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.005274/1.552, allocations: 2.005 MB / 1.126 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.005808/1.558, allocations: 2.978 MB / 1.129 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 6.281e-06/1.558, allocations: 4 kB / 1.129 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.003508/1.562, allocations: 1.79 MB / 1.131 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003901/1.566, allocations: 0.7774 MB / 1.132 GB, free: 9.363 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008786/1.574, allocations: 4.719 MB / 1.136 GB, free: 4.617 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001606/1.576, allocations: 1.662 MB / 1.138 GB, free: 2.922 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.002857/1.579, allocations: 1.248 MB / 1.139 GB, free: 1.688 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007375/1.58, allocations: 219.3 kB / 1.139 GB, free: 1.473 MB / 0.8262 GB Notification: Performance of SimCode: time 1.113e-06/1.58, allocations: 0 / 1.139 GB, free: 1.473 MB / 0.8262 GB Notification: Performance of Templates: time 0.3919/1.971, allocations: 70.08 MB / 1.208 GB, free: 420.6 MB / 0.8887 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