Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.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.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|junctionN.outlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction") translateModel(ThermofluidStream.Topology.Tests.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|junctionN.outlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001118/0.001117, allocations: 107 kB / 16.41 MB, free: 6.496 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.001065/0.001065, allocations: 187 kB / 17.34 MB, free: 5.762 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.34/1.34, 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.6565/0.6565, allocations: 91.19 MB / 382.4 MB, free: 7.531 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 79.88 kB / 0.5175 GB, free: 4.121 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.3224, allocations: 67.69 MB / 0.5836 GB, free: 13.9 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.145/0.4674, allocations: 144.5 MB / 0.7247 GB, free: 13.12 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.004593/0.4721, allocations: 4.545 MB / 0.7291 GB, free: 8.566 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002956/0.4724, allocations: 23.81 kB / 0.7292 GB, free: 8.543 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0006022/0.473, allocations: 206.6 kB / 0.7293 GB, free: 8.34 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000614/0.4737, allocations: 282.3 kB / 0.7296 GB, free: 8.062 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001008/0.4747, allocations: 422.4 kB / 0.73 GB, free: 7.648 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.000672/0.4754, allocations: 0.6699 MB / 0.7307 GB, free: 6.977 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002076/0.4756, allocations: 118.6 kB / 0.7308 GB, free: 6.855 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005847/0.4762, allocations: 362.6 kB / 0.7311 GB, free: 6.5 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004155/0.4766, allocations: 326.8 kB / 0.7314 GB, free: 6.18 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.346e-05/0.4767, allocations: 32 kB / 0.7315 GB, free: 6.148 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007638/0.4774, allocations: 455.1 kB / 0.7319 GB, free: 5.703 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.43e-05/0.4775, allocations: 107.6 kB / 0.732 GB, free: 5.598 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0001745/0.4777, allocations: 202.9 kB / 0.7322 GB, free: 5.398 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.000716/0.4784, allocations: 0.6246 MB / 0.7328 GB, free: 4.777 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.4784, allocations: 0 / 0.7328 GB, free: 4.777 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.833e-06/0.4785, allocations: 0 / 0.7328 GB, free: 4.777 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.108e-05/0.4785, allocations: 0 / 0.7328 GB, free: 4.777 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001399/0.4799, allocations: 0.7947 MB / 0.7336 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.4799, allocations: 8.031 kB / 0.7336 GB, free: 3.926 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.398e-05/0.48, allocations: 48.38 kB / 0.7336 GB, free: 3.879 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005614/0.4806, allocations: 458 kB / 0.7341 GB, free: 3.391 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.907e-05/0.4806, allocations: 20.88 kB / 0.7341 GB, free: 3.371 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.778e-05/0.4807, allocations: 32.22 kB / 0.7341 GB, free: 3.34 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005975/0.4813, allocations: 441.4 kB / 0.7346 GB, free: 2.887 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.4813, allocations: 0 / 0.7346 GB, free: 2.887 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.331e-05/0.4813, allocations: 12 kB / 0.7346 GB, free: 2.875 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.958e-05/0.4814, allocations: 12.56 kB / 0.7346 GB, free: 2.863 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006351/0.482, allocations: 485.8 kB / 0.735 GB, free: 2.391 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001831/0.4838, allocations: 1.423 MB / 0.7364 GB, free: 0.8789 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004066/0.4843, allocations: 250.5 kB / 0.7367 GB, free: 0.625 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002815/0.4846, allocations: 205.3 kB / 0.7369 GB, free: 432 kB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002605/0.4848, allocations: 344.4 kB / 0.7372 GB, free: 12 kB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2542/0.739, allocations: 35.06 kB / 0.7372 GB, free: 155.5 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=32): time 4.469e-06/0.7391, allocations: 0 / 0.7372 GB, free: 155.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=33): time 0.002708/0.7418, allocations: 1.506 MB / 0.7387 GB, free: 154.7 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.387e-05/0.7419, allocations: 58.97 kB / 0.7388 GB, free: 154.7 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000374/0.7422, allocations: 380.1 kB / 0.7391 GB, free: 154.5 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.495e-05/0.7423, allocations: 30.7 kB / 0.7391 GB, free: 154.4 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.7424, allocations: 195.1 kB / 0.7393 GB, free: 154.3 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.15e-05/0.7425, allocations: 114.3 kB / 0.7394 GB, free: 154.2 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001091/0.7426, allocations: 65.81 kB / 0.7395 GB, free: 154.1 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.834e-05/0.7427, allocations: 351.3 kB / 0.7398 GB, free: 153.8 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002448/0.7429, allocations: 144.1 kB / 0.74 GB, free: 153.8 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002432/0.7432, allocations: 152.3 kB / 0.7401 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005417/0.7437, allocations: 346.2 kB / 0.7405 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.7437, allocations: 0 / 0.7405 GB, free: 153.6 MB / 0.5762 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008853/0.7446, allocations: 0.5119 MB / 0.741 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.7446, allocations: 5.125 kB / 0.741 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.7446, allocations: 5.781 kB / 0.741 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003549/0.745, allocations: 113.1 kB / 0.7411 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002749/0.7453, allocations: 53.28 kB / 0.7411 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002188/0.7475, allocations: 2.337 MB / 0.7434 GB, free: 151.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002049/0.7477, allocations: 9.953 kB / 0.7434 GB, free: 151.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.44e-05/0.7477, allocations: 16.61 kB / 0.7434 GB, free: 151.4 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001773/0.7479, allocations: 162.7 kB / 0.7436 GB, free: 151.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.638e-05/0.748, allocations: 44.58 kB / 0.7436 GB, free: 151.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001112/0.7492, allocations: 0.6534 MB / 0.7443 GB, free: 150.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.301e-06/0.7492, allocations: 3.062 kB / 0.7443 GB, free: 150.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.7492, allocations: 2.438 kB / 0.7443 GB, free: 150.9 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.7492, allocations: 5.141 kB / 0.7443 GB, free: 150.9 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004807/0.7497, allocations: 443 kB / 0.7447 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.7497, allocations: 3.938 kB / 0.7447 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001918/0.7499, allocations: 30.09 kB / 0.7447 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003524/0.7502, allocations: 124.6 kB / 0.7448 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.002e-05/0.7503, allocations: 12.59 kB / 0.7449 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00225/0.7525, allocations: 2.343 MB / 0.7471 GB, free: 148.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.7526, allocations: 3.719 kB / 0.7472 GB, free: 148.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001082/0.7536, allocations: 0.6434 MB / 0.7478 GB, free: 148.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6e-05/0.7537, allocations: 110.5 kB / 0.7479 GB, free: 148.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.645e-05/0.7538, allocations: 9.875 kB / 0.7479 GB, free: 148.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001741/0.754, allocations: 6.844 kB / 0.7479 GB, free: 148.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.172e-05/0.754, allocations: 22.94 kB / 0.7479 GB, free: 148.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.612e-05/0.7541, allocations: 14.41 kB / 0.7479 GB, free: 148.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003091/0.7544, allocations: 299.1 kB / 0.7482 GB, free: 148.1 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.31e-07/0.7544, allocations: 4.219 kB / 0.7482 GB, free: 148.1 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0005918/0.755, allocations: 114.5 kB / 0.7483 GB, free: 148 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (source.outlet.m_flow,source1.outlet.m_flow,source2.outlet.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 (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(4,8,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002558/0.7552, allocations: 183 kB / 0.7485 GB, free: 147.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008472/0.7561, allocations: 0.5208 MB / 0.749 GB, free: 147.7 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.7561, allocations: 112 / 0.749 GB, free: 147.7 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0005092/0.7566, allocations: 369.3 kB / 0.7494 GB, free: 147.4 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005627/0.7572, allocations: 112.5 kB / 0.7495 GB, free: 147.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001223/0.7584, allocations: 0.9396 MB / 0.7504 GB, free: 146.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001778/0.7586, allocations: 0.8192 MB / 0.7512 GB, free: 146 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.7587, allocations: 53.27 kB / 0.7512 GB, free: 145.9 MB / 0.5762 GB Notification: Performance of SimCode: time 3.5e-07/0.7588, allocations: 0 / 0.7512 GB, free: 145.9 MB / 0.5762 GB Notification: Performance of Templates: time 0.008288/0.767, allocations: 8.595 MB / 0.7596 GB, free: 137.6 MB / 0.5762 GB make -j1 -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.makefile (rm -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.sim & ./ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunction_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches