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.007311/0.007322, allocations: 101 kB / 15.73 MB, free: 6.039 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.001775/0.001775, allocations: 193.8 kB / 16.68 MB, free: 5.953 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8288/0.8288, allocations: 91.18 MB / 381.7 MB, free: 7.484 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001838/0.001838, allocations: 80.16 kB / 0.5168 GB, free: 4.094 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3897/0.3915, allocations: 67.68 MB / 0.5829 GB, free: 13.97 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.1722/0.5638, allocations: 144.5 MB / 0.724 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.005265/0.5691, allocations: 4.541 MB / 0.7285 GB, free: 8.531 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003389/0.5694, allocations: 27.81 kB / 0.7285 GB, free: 8.504 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000669/0.5701, allocations: 206.7 kB / 0.7287 GB, free: 8.301 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0006105/0.5708, allocations: 278.3 kB / 0.729 GB, free: 8.027 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001055/0.5719, allocations: 426.4 kB / 0.7294 GB, free: 7.609 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0006807/0.5726, allocations: 0.6621 MB / 0.73 GB, free: 6.945 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002449/0.5728, allocations: 114.6 kB / 0.7301 GB, free: 6.828 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006266/0.5734, allocations: 366.5 kB / 0.7305 GB, free: 6.469 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004589/0.5739, allocations: 330.8 kB / 0.7308 GB, free: 6.145 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 5.187e-05/0.574, allocations: 32 kB / 0.7308 GB, free: 6.113 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008973/0.5749, allocations: 451.1 kB / 0.7312 GB, free: 5.672 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.96e-05/0.575, allocations: 103.6 kB / 0.7313 GB, free: 5.57 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002295/0.5752, allocations: 206.9 kB / 0.7315 GB, free: 5.367 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0008365/0.5761, allocations: 0.6246 MB / 0.7321 GB, free: 4.746 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.5761, allocations: 4 kB / 0.7321 GB, free: 4.742 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.442e-06/0.5761, allocations: 0 / 0.7321 GB, free: 4.742 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.694e-06/0.5761, allocations: 0 / 0.7321 GB, free: 4.742 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.001538/0.5777, allocations: 0.7908 MB / 0.7329 GB, free: 3.902 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.766e-05/0.5777, allocations: 8.031 kB / 0.7329 GB, free: 3.895 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.255e-05/0.5778, allocations: 52.36 kB / 0.733 GB, free: 3.844 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000747/0.5786, allocations: 457.8 kB / 0.7334 GB, free: 3.355 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.21e-05/0.5786, allocations: 24.92 kB / 0.7334 GB, free: 3.332 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.893e-05/0.5786, allocations: 28.28 kB / 0.7335 GB, free: 3.305 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007223/0.5794, allocations: 441.3 kB / 0.7339 GB, free: 2.852 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.5794, allocations: 0 / 0.7339 GB, free: 2.852 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.422e-05/0.5794, allocations: 12 kB / 0.7339 GB, free: 2.84 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.035e-05/0.5795, allocations: 16.56 kB / 0.7339 GB, free: 2.824 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008228/0.5803, allocations: 485.8 kB / 0.7344 GB, free: 2.352 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002169/0.5825, allocations: 1.423 MB / 0.7358 GB, free: 0.8398 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004306/0.5829, allocations: 246.5 kB / 0.736 GB, free: 0.5898 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003391/0.5833, allocations: 213.2 kB / 0.7362 GB, free: 388 kB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.357/0.9403, allocations: 335.8 kB / 0.7365 GB, free: 155.5 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.097e-05/0.9404, allocations: 34.12 kB / 0.7366 GB, free: 155.5 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=32): time 3.176e-06/0.9404, allocations: 0 / 0.7366 GB, free: 155.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=33): time 0.003005/0.9434, allocations: 1.515 MB / 0.738 GB, free: 154.7 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.607e-05/0.9434, allocations: 58.59 kB / 0.7381 GB, free: 154.6 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000439/0.9439, allocations: 376.7 kB / 0.7385 GB, free: 154.4 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.822e-05/0.9439, allocations: 31.8 kB / 0.7385 GB, free: 154.4 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.944, allocations: 192.9 kB / 0.7387 GB, free: 154.2 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.724e-05/0.9441, allocations: 122.2 kB / 0.7388 GB, free: 154.1 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.9442, allocations: 64.8 kB / 0.7388 GB, free: 154.1 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 8.682e-05/0.9443, allocations: 358.8 kB / 0.7392 GB, free: 153.8 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002551/0.9446, allocations: 142 kB / 0.7393 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002677/0.9449, allocations: 144 kB / 0.7395 GB, free: 153.7 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000521/0.9454, allocations: 343.4 kB / 0.7398 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.9454, allocations: 0 / 0.7398 GB, free: 153.5 MB / 0.5762 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009238/0.9463, allocations: 0.5196 MB / 0.7403 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.177e-05/0.9464, allocations: 6.094 kB / 0.7403 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.9464, allocations: 0.6875 kB / 0.7403 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003903/0.9468, allocations: 113 kB / 0.7404 GB, free: 153.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002833/0.9471, allocations: 58.17 kB / 0.7405 GB, free: 153.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002303/0.9494, allocations: 2.33 MB / 0.7427 GB, free: 151.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002091/0.9496, allocations: 8.906 kB / 0.7427 GB, free: 151.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.962e-05/0.9497, allocations: 13.61 kB / 0.7428 GB, free: 151.3 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.0001952/0.9499, allocations: 174 kB / 0.7429 GB, free: 151.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.958e-05/0.95, allocations: 48.09 kB / 0.743 GB, free: 151.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001207/0.9512, allocations: 0.6431 MB / 0.7436 GB, free: 150.8 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.832e-06/0.9512, allocations: 3.828 kB / 0.7436 GB, free: 150.8 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.9512, allocations: 1.938 kB / 0.7436 GB, free: 150.8 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.9512, allocations: 5.453 kB / 0.7436 GB, free: 150.8 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005338/0.9518, allocations: 439.5 kB / 0.744 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.9518, allocations: 0 / 0.744 GB, free: 150.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001945/0.952, allocations: 34.38 kB / 0.7441 GB, free: 150.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000369/0.9523, allocations: 123.8 kB / 0.7442 GB, free: 150.5 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.06e-05/0.9524, allocations: 16.88 kB / 0.7442 GB, free: 150.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002373/0.9548, allocations: 2.339 MB / 0.7465 GB, free: 148.6 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.9548, allocations: 0 / 0.7465 GB, free: 148.6 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00114/0.9559, allocations: 0.655 MB / 0.7471 GB, free: 148.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.408e-05/0.956, allocations: 111.9 kB / 0.7472 GB, free: 148.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.402e-05/0.9561, allocations: 7.938 kB / 0.7472 GB, free: 148.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001729/0.9562, allocations: 11.69 kB / 0.7472 GB, free: 148.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.132e-05/0.9563, allocations: 24.34 kB / 0.7473 GB, free: 148.2 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.78e-05/0.9563, allocations: 12.72 kB / 0.7473 GB, free: 148.2 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003608/0.9567, allocations: 298.6 kB / 0.7476 GB, free: 148 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9567, allocations: 0 / 0.7476 GB, free: 148 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0005613/0.9573, allocations: 111 kB / 0.7477 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.0002612/0.9576, allocations: 189.2 kB / 0.7479 GB, free: 147.9 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008538/0.9584, allocations: 0.5187 MB / 0.7484 GB, free: 147.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.9584, allocations: 4 kB / 0.7484 GB, free: 147.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0004953/0.9589, allocations: 359.4 kB / 0.7487 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.0005511/0.9595, allocations: 110.1 kB / 0.7488 GB, free: 147.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001264/0.9608, allocations: 0.9061 MB / 0.7497 GB, free: 146.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002159/0.961, allocations: 0.8221 MB / 0.7505 GB, free: 145.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0002068/0.9612, allocations: 86.52 kB / 0.7506 GB, free: 145.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.512e-05/0.9613, allocations: 43.19 kB / 0.7506 GB, free: 145.9 MB / 0.5762 GB Notification: Performance of SimCode: time 6.01e-07/0.9613, allocations: 0 / 0.7506 GB, free: 145.9 MB / 0.5762 GB Notification: Performance of Templates: time 0.01009/0.9714, allocations: 7.067 MB / 0.7575 GB, free: 138.9 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches