Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008214/0.0008214, allocations: 80.75 kB / 19.94 MB, free: 4.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 181 kB / 23.36 MB, free: 1.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.009/1.009, allocations: 177.1 MB / 203.8 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.735/0.735, allocations: 118.6 MB / 378.9 MB, free: 1.332 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Topology.Tests.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|junctionN.outlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction") translateModel(ThermofluidStream.Topology.Tests.TestJunction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|junctionN.outlet.m_flow|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.983e-06/1.983e-06, allocations: 0 / 430.8 MB, free: 13.3 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.818e-05/3.017e-05, allocations: 5.125 kB / 430.8 MB, free: 13.29 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.3399/0.3399, allocations: 129.2 MB / 0.5469 GB, free: 10.11 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.002036/0.3419, allocations: 1.382 MB / 0.5482 GB, free: 8.734 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003306/0.3423, allocations: 39.62 kB / 0.5483 GB, free: 8.695 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0004312/0.3427, allocations: 120.9 kB / 0.5484 GB, free: 8.578 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0006077/0.3433, allocations: 320.2 kB / 0.5487 GB, free: 8.266 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006004/0.3439, allocations: 231.2 kB / 0.5489 GB, free: 8.039 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0008127/0.3447, allocations: 0.8254 MB / 0.5497 GB, free: 7.211 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001963/0.3449, allocations: 76.84 kB / 0.5498 GB, free: 7.137 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007734/0.3457, allocations: 446.7 kB / 0.5502 GB, free: 6.699 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004572/0.3462, allocations: 359.1 kB / 0.5506 GB, free: 6.348 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0001871/0.3463, allocations: 32 kB / 0.5506 GB, free: 6.316 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003151/0.3467, allocations: 155.6 kB / 0.5507 GB, free: 6.164 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 9.341e-05/0.3467, allocations: 123.6 kB / 0.5509 GB, free: 6.043 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.0001221/0.3469, allocations: 151.6 kB / 0.551 GB, free: 5.895 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0006082/0.3475, allocations: 0.4943 MB / 0.5515 GB, free: 5.398 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3475, allocations: 0 / 0.5515 GB, free: 5.398 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3475, allocations: 0 / 0.5515 GB, free: 5.398 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 7.494e-06/0.3475, allocations: 4 kB / 0.5515 GB, free: 5.395 MB / 0.4948 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.0009846/0.3485, allocations: 0.728 MB / 0.5522 GB, free: 4.645 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.3485, allocations: 12.03 kB / 0.5522 GB, free: 4.633 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.209e-05/0.3486, allocations: 53.39 kB / 0.5523 GB, free: 4.582 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005806/0.3492, allocations: 440.2 kB / 0.5527 GB, free: 4.129 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.132e-05/0.3492, allocations: 24.86 kB / 0.5527 GB, free: 4.102 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.495e-05/0.3492, allocations: 24.38 kB / 0.5527 GB, free: 4.078 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003113/0.3496, allocations: 256.9 kB / 0.553 GB, free: 3.809 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.3496, allocations: 1 kB / 0.553 GB, free: 3.809 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.176e-05/0.3496, allocations: 15.94 kB / 0.553 GB, free: 3.793 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.788e-05/0.3496, allocations: 16.48 kB / 0.553 GB, free: 3.777 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.3498, allocations: 154.1 kB / 0.5531 GB, free: 3.625 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001097/0.3509, allocations: 0.8738 MB / 0.554 GB, free: 2.727 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005251/0.3514, allocations: 116.7 kB / 0.5541 GB, free: 2.605 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.3515, allocations: 80.81 kB / 0.5542 GB, free: 2.523 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001117/0.3517, allocations: 23.61 kB / 0.5542 GB, free: 2.504 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.661e-05/0.3517, allocations: 38.56 kB / 0.5542 GB, free: 2.457 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=32): time 3.126e-06/0.3517, allocations: 3.984 kB / 0.5543 GB, free: 2.453 MB / 0.4948 GB Notification: Performance of matching and sorting (n=33): time 0.001175/0.3529, allocations: 0.665 MB / 0.5549 GB, free: 1.754 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.988e-05/0.3529, allocations: 55.41 kB / 0.555 GB, free: 1.688 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001908/0.3531, allocations: 335.3 kB / 0.5553 GB, free: 1.348 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.318e-05/0.3531, allocations: 29.7 kB / 0.5553 GB, free: 1.312 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 6.47e-05/0.3532, allocations: 169.6 kB / 0.5555 GB, free: 1.145 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 7.399e-05/0.3532, allocations: 122.9 kB / 0.5556 GB, free: 1.023 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.254e-05/0.3533, allocations: 69.58 kB / 0.5556 GB, free: 0.9492 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001048/0.3534, allocations: 354.7 kB / 0.556 GB, free: 0.5938 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.189e-05/0.3535, allocations: 44.88 kB / 0.556 GB, free: 0.5508 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.696e-05/0.3535, allocations: 51.62 kB / 0.5561 GB, free: 0.5 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001556/0.3537, allocations: 135.5 kB / 0.5562 GB, free: 372 kB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-06/0.3537, allocations: 0 / 0.5562 GB, free: 372 kB / 0.4948 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003118/0.354, allocations: 261.3 kB / 0.5565 GB, free: 100 kB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.354, allocations: 8 kB / 0.5565 GB, free: 92 kB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.354, allocations: 0 / 0.5565 GB, free: 92 kB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002242/0.3543, allocations: 88.16 kB / 0.5565 GB, free: 0 / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001725/0.3544, allocations: 51.94 kB / 0.5566 GB, free: 15.95 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001362/0.3558, allocations: 1.751 MB / 0.5583 GB, free: 14.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.641e-05/0.3559, allocations: 4.109 kB / 0.5583 GB, free: 14.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.717e-05/0.3559, allocations: 11.92 kB / 0.5583 GB, free: 14.09 MB / 0.5105 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.0001011/0.356, allocations: 128.6 kB / 0.5584 GB, free: 13.95 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.991e-05/0.3561, allocations: 43.91 kB / 0.5585 GB, free: 13.91 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004555/0.3565, allocations: 440.3 kB / 0.5589 GB, free: 13.44 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.3565, allocations: 0 / 0.5589 GB, free: 13.44 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.3565, allocations: 4 kB / 0.5589 GB, free: 13.44 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.3565, allocations: 3.984 kB / 0.5589 GB, free: 13.43 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002161/0.3567, allocations: 218.2 kB / 0.5591 GB, free: 13.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.3567, allocations: 1.25 kB / 0.5591 GB, free: 13.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001036/0.3568, allocations: 35.94 kB / 0.5592 GB, free: 13.17 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002071/0.357, allocations: 102.6 kB / 0.5593 GB, free: 13.07 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.843e-05/0.3571, allocations: 15.92 kB / 0.5593 GB, free: 13.05 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00119/0.3583, allocations: 1.712 MB / 0.5609 GB, free: 11.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3583, allocations: 4 kB / 0.5609 GB, free: 11.24 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006587/0.3589, allocations: 322.2 kB / 0.5613 GB, free: 10.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 6.462e-05/0.359, allocations: 43.7 kB / 0.5613 GB, free: 10.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.025e-05/0.359, allocations: 5.062 kB / 0.5613 GB, free: 10.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.476e-05/0.3591, allocations: 8 kB / 0.5613 GB, free: 10.85 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.198e-05/0.3591, allocations: 27.88 kB / 0.5613 GB, free: 10.82 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.544e-05/0.3591, allocations: 7.984 kB / 0.5613 GB, free: 10.81 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001042/0.3592, allocations: 156.7 kB / 0.5615 GB, free: 10.66 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4e-08/0.3592, allocations: 4 kB / 0.5615 GB, free: 10.66 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002968/0.3595, allocations: 111.9 kB / 0.5616 GB, free: 10.55 MB / 0.5105 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.0001608/0.3597, allocations: 104.3 kB / 0.5617 GB, free: 10.43 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0004803/0.3602, allocations: 334.1 kB / 0.562 GB, free: 10.09 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.3602, allocations: 4 kB / 0.562 GB, free: 10.09 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0002841/0.3605, allocations: 291.5 kB / 0.5623 GB, free: 9.789 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003998/0.3609, allocations: 140.3 kB / 0.5624 GB, free: 9.664 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001353/0.3622, allocations: 0.7946 MB / 0.5632 GB, free: 8.844 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.205e-05/0.3623, allocations: 117.3 kB / 0.5633 GB, free: 8.711 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.00014/0.3625, allocations: 63.25 kB / 0.5634 GB, free: 8.648 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002081/0.3627, allocations: 145.3 kB / 0.5635 GB, free: 8.504 MB / 0.5105 GB Notification: Performance of SimCode: time 1.443e-06/0.3627, allocations: 0 / 0.5635 GB, free: 8.504 MB / 0.5105 GB Notification: Performance of Templates: time 0.009717/0.3724, allocations: 7.273 MB / 0.5706 GB, free: 1.406 MB / 0.5105 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.sim & ./ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunction_ref.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.8262583329342306]