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.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.001308/0.001308, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.001383/0.001383, allocations: 177 kB / 23.49 MB, free: 1.059 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 0.9749/0.9749, allocations: 177.1 MB / 203.8 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 0.7264/0.7264, allocations: 118.6 MB / 378.9 MB, free: 1.523 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/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.TestJunctionNM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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=1000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 483.6 MB, free: 8.234 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.658e-05/1.856e-05, allocations: 2.312 kB / 483.6 MB, free: 8.23 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunctionNM): time 0.5671/0.5672, allocations: 382.5 MB / 0.8459 GB, free: 4.691 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.03763/0.6048, allocations: 18.34 MB / 0.8638 GB, free: 2.297 MB / 0.6511 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001969/0.6068, allocations: 126.8 kB / 0.8639 GB, free: 2.172 MB / 0.6511 GB Notification: Performance of NFTyping.typeComponents: time 0.00979/0.6165, allocations: 1.798 MB / 0.8656 GB, free: 372 kB / 0.6511 GB Notification: Performance of NFTyping.typeBindings: time 0.03368/0.6502, allocations: 9.132 MB / 0.8746 GB, free: 7.188 MB / 0.6667 GB Notification: Performance of NFTyping.typeClassSections: time 0.00952/0.6597, allocations: 4.464 MB / 0.8789 GB, free: 2.707 MB / 0.6667 GB Notification: Performance of NFFlatten.flatten: time 0.005192/0.6649, allocations: 4.6 MB / 0.8834 GB, free: 14.09 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001105/0.666, allocations: 0.6546 MB / 0.884 GB, free: 13.39 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006792/0.6728, allocations: 3.506 MB / 0.8875 GB, free: 9.871 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002638/0.6755, allocations: 1.691 MB / 0.8891 GB, free: 8.176 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0006711/0.6761, allocations: 244 kB / 0.8894 GB, free: 7.938 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0213/0.6974, allocations: 13.75 MB / 0.9028 GB, free: 10.16 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.001313/0.6988, allocations: 0.954 MB / 0.9037 GB, free: 9.203 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.001821/0.7006, allocations: 1.08 MB / 0.9048 GB, free: 8.121 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.4535/1.154, allocations: 10.02 MB / 0.9146 GB, free: 24.36 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 6.513e-06/1.154, allocations: 1.406 kB / 0.9146 GB, free: 24.36 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.523e-06/1.154, allocations: 0 / 0.9146 GB, free: 24.36 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001023/1.154, allocations: 2.938 kB / 0.9146 GB, free: 24.36 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 516 * Number of variables: 516 Notification: Performance of Generate backend data structure: time 0.008735/1.163, allocations: 4.979 MB / 0.9194 GB, free: 22.58 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/1.163, allocations: 10.78 kB / 0.9194 GB, free: 22.58 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00122/1.164, allocations: 0.5966 MB / 0.92 GB, free: 22.36 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00218/1.166, allocations: 1.847 MB / 0.9218 GB, free: 21.79 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.638e-05/1.166, allocations: 144 kB / 0.922 GB, free: 21.79 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002246/1.167, allocations: 203.7 kB / 0.9221 GB, free: 21.78 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002258/1.169, allocations: 1.794 MB / 0.9239 GB, free: 21.47 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.296e-05/1.169, allocations: 4.562 kB / 0.9239 GB, free: 21.47 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001228/1.169, allocations: 81.69 kB / 0.924 GB, free: 21.47 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000164/1.169, allocations: 184.3 kB / 0.9242 GB, free: 21.46 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001972/1.171, allocations: 1.256 MB / 0.9254 GB, free: 21.44 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00867/1.18, allocations: 7.473 MB / 0.9327 GB, free: 18.77 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001742/1.182, allocations: 0.8481 MB / 0.9335 GB, free: 18.69 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001184/1.183, allocations: 0.6132 MB / 0.9341 GB, free: 18.66 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009968/1.184, allocations: 494.7 kB / 0.9346 GB, free: 18.66 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.144e-05/1.184, allocations: 57.17 kB / 0.9346 GB, free: 18.62 MB / 0.698 GB Notification: Performance of pre-optimization done (n=196): time 5.26e-06/1.184, allocations: 0 / 0.9346 GB, free: 18.62 MB / 0.698 GB Notification: Performance of matching and sorting (n=200): time 0.007981/1.192, allocations: 4.955 MB / 0.9395 GB, free: 17.39 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.237e-05/1.192, allocations: 103.8 kB / 0.9396 GB, free: 17.29 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001321/1.193, allocations: 1.454 MB / 0.941 GB, free: 17 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.0001064/1.193, allocations: 59.2 kB / 0.941 GB, free: 16.97 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006126/1.194, allocations: 1.111 MB / 0.9421 GB, free: 16.55 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004299/1.194, allocations: 0.7196 MB / 0.9428 GB, free: 16.07 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004481/1.195, allocations: 362.9 kB / 0.9432 GB, free: 16.05 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.067e-05/1.195, allocations: 476.8 kB / 0.9436 GB, free: 15.58 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007392/1.196, allocations: 426 kB / 0.944 GB, free: 15.57 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009162/1.197, allocations: 0.6424 MB / 0.9447 GB, free: 15.41 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001793/1.198, allocations: 1.233 MB / 0.9459 GB, free: 15.25 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/1.198, allocations: 0 / 0.9459 GB, free: 15.25 MB / 0.698 GB Notification: Performance of matching and sorting (n=222) (initialization): time 0.00269/1.201, allocations: 1.905 MB / 0.9477 GB, free: 14.98 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/1.201, allocations: 7.812 kB / 0.9477 GB, free: 14.98 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.45e-05/1.201, allocations: 2.562 kB / 0.9477 GB, free: 14.98 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001115/1.202, allocations: 466.2 kB / 0.9482 GB, free: 14.94 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007217/1.203, allocations: 347.8 kB / 0.9485 GB, free: 14.94 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004049/1.207, allocations: 5.865 MB / 0.9542 GB, free: 10.91 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006275/1.208, allocations: 49.02 kB / 0.9543 GB, free: 10.91 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001866/1.208, allocations: 120 kB / 0.9544 GB, free: 10.9 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (182): * Single equations (assignments): 170 * 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.0005892/1.208, allocations: 244 kB / 0.9546 GB, free: 10.74 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003668/1.209, allocations: 299.8 kB / 0.9549 GB, free: 10.61 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004126/1.213, allocations: 3.383 MB / 0.9582 GB, free: 10.14 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.832e-05/1.213, allocations: 20.28 kB / 0.9582 GB, free: 10.14 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/1.213, allocations: 6.531 kB / 0.9583 GB, free: 10.14 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.628e-05/1.213, allocations: 9.797 kB / 0.9583 GB, free: 10.14 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005547/1.218, allocations: 4.142 MB / 0.9623 GB, free: 9.512 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/1.218, allocations: 7.281 kB / 0.9623 GB, free: 9.508 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006025/1.219, allocations: 286.4 kB / 0.9626 GB, free: 9.508 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001162/1.22, allocations: 493.3 kB / 0.9631 GB, free: 9.453 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001373/1.22, allocations: 73.62 kB / 0.9631 GB, free: 9.453 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004427/1.225, allocations: 5.875 MB / 0.9689 GB, free: 21.42 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.177e-06/1.225, allocations: 8.312 kB / 0.9689 GB, free: 21.42 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003883/1.229, allocations: 2.687 MB / 0.9715 GB, free: 20.77 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006616/1.229, allocations: 461.4 kB / 0.9719 GB, free: 20.65 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002203/1.23, allocations: 43.86 kB / 0.972 GB, free: 20.65 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005278/1.23, allocations: 46.42 kB / 0.972 GB, free: 20.65 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002426/1.23, allocations: 175.9 kB / 0.9722 GB, free: 20.64 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001471/1.23, allocations: 100.5 kB / 0.9723 GB, free: 20.64 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.0009583/1.231, allocations: 0.98 MB / 0.9732 GB, free: 20.45 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.9e-07/1.231, allocations: 0 / 0.9732 GB, free: 20.45 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.004645/1.236, allocations: 1.662 MB / 0.9749 GB, free: 20.21 MB / 0.7136 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 (150): * Single equations (assignments): 138 * 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.003182/1.239, allocations: 2.021 MB / 0.9768 GB, free: 19.7 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.002894/1.242, allocations: 1.966 MB / 0.9788 GB, free: 19.24 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/1.242, allocations: 0 / 0.9788 GB, free: 19.24 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.001619/1.244, allocations: 1.416 MB / 0.9801 GB, free: 18.8 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002777/1.247, allocations: 1.101 MB / 0.9812 GB, free: 18.61 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006388/1.253, allocations: 4.464 MB / 0.9856 GB, free: 16.61 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004747/1.253, allocations: 0.5368 MB / 0.9861 GB, free: 16.48 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.001813/1.255, allocations: 1.044 MB / 0.9871 GB, free: 16.29 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004862/1.256, allocations: 241.3 kB / 0.9874 GB, free: 16.28 MB / 0.7136 GB Notification: Performance of SimCode: time 1.673e-06/1.256, allocations: 0 / 0.9874 GB, free: 16.28 MB / 0.7136 GB Notification: Performance of Templates: time 0.07395/1.33, allocations: 74.67 MB / 1.06 GB, free: 2.125 MB / 0.7448 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunctionNM_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunctionNM_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: 6.710560322040692]