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.001058/0.001058, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.009074/0.009074, allocations: 171.9 kB / 16.27 MB, free: 6.648 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.374/1.374, allocations: 223.3 MB / 240.3 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6499/0.6499, allocations: 91.33 MB / 382.7 MB, free: 9.617 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004003/0.0004004, allocations: 13.86 kB / 462.7 MB, free: 23.6 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.119, allocations: 69.21 MB / 0.5195 GB, free: 9.09 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.3961/0.5152, allocations: 140.8 MB / 0.6569 GB, free: 5.922 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.005026/0.5203, allocations: 4.53 MB / 0.6614 GB, free: 2.258 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004378/0.5207, allocations: 22.75 kB / 0.6614 GB, free: 2.246 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006498/0.5214, allocations: 176.1 kB / 0.6616 GB, free: 2.105 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006732/0.5221, allocations: 261.8 kB / 0.6618 GB, free: 1.895 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001062/0.5231, allocations: 404.2 kB / 0.6622 GB, free: 1.598 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008013/0.524, allocations: 0.8312 MB / 0.663 GB, free: 1.137 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002078/0.5242, allocations: 115.7 kB / 0.6631 GB, free: 1.074 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006099/0.5248, allocations: 311.9 kB / 0.6634 GB, free: 0.8945 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004029/0.5252, allocations: 319.2 kB / 0.6637 GB, free: 0.7188 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 3.81e-05/0.5253, allocations: 13.91 kB / 0.6637 GB, free: 0.7188 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007681/0.526, allocations: 447 kB / 0.6642 GB, free: 0.5117 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 9.927e-05/0.5261, allocations: 84.52 kB / 0.6642 GB, free: 464 kB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001789/0.5263, allocations: 207.3 kB / 0.6644 GB, free: 312 kB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006471/0.527, allocations: 0.5471 MB / 0.665 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.432e-05/0.527, allocations: 0 / 0.665 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.527, allocations: 0 / 0.665 GB, free: 15.96 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.527, allocations: 3.938 kB / 0.665 GB, free: 15.95 MB / 494.1 MB 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.001405/0.5284, allocations: 0.7138 MB / 0.6657 GB, free: 15.36 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.5285, allocations: 8.875 kB / 0.6657 GB, free: 15.36 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.655e-05/0.5286, allocations: 50.34 kB / 0.6657 GB, free: 15.33 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005454/0.5291, allocations: 425.9 kB / 0.6661 GB, free: 14.95 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/0.5292, allocations: 19.81 kB / 0.6662 GB, free: 14.95 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.835e-05/0.5292, allocations: 26.06 kB / 0.6662 GB, free: 14.93 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006424/0.5299, allocations: 440 kB / 0.6666 GB, free: 14.65 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.5299, allocations: 0 / 0.6666 GB, free: 14.65 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.741e-05/0.5299, allocations: 14.67 kB / 0.6666 GB, free: 14.64 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.8e-05/0.53, allocations: 22.55 kB / 0.6666 GB, free: 14.63 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007067/0.5307, allocations: 479.6 kB / 0.6671 GB, free: 14.39 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002143/0.5329, allocations: 1.445 MB / 0.6685 GB, free: 13.19 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004397/0.5333, allocations: 239.6 kB / 0.6687 GB, free: 13.06 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003243/0.5336, allocations: 209 kB / 0.6689 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003377/0.534, allocations: 338.2 kB / 0.6693 GB, free: 12.56 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.146e-05/0.534, allocations: 41.8 kB / 0.6693 GB, free: 12.52 MB / 494.1 MB Notification: Performance of pre-optimization done (n=32): time 1.573e-06/0.534, allocations: 0 / 0.6693 GB, free: 12.52 MB / 494.1 MB Notification: Performance of matching and sorting (n=33): time 0.002532/0.5366, allocations: 1.515 MB / 0.6708 GB, free: 11.4 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.5366, allocations: 54.72 kB / 0.6708 GB, free: 11.34 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003749/0.537, allocations: 383.5 kB / 0.6712 GB, free: 11.1 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.361e-05/0.5371, allocations: 29.7 kB / 0.6712 GB, free: 11.07 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.5372, allocations: 188.1 kB / 0.6714 GB, free: 10.89 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001117/0.5373, allocations: 116.1 kB / 0.6715 GB, free: 10.79 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.351e-05/0.5374, allocations: 29.67 kB / 0.6715 GB, free: 10.77 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.5375, allocations: 357.6 kB / 0.6719 GB, free: 10.42 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002387/0.5378, allocations: 141.3 kB / 0.672 GB, free: 10.35 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002254/0.538, allocations: 143.6 kB / 0.6721 GB, free: 10.28 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005265/0.5386, allocations: 350.8 kB / 0.6725 GB, free: 10.09 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.5386, allocations: 0 / 0.6725 GB, free: 10.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008609/0.5394, allocations: 0.5167 MB / 0.673 GB, free: 9.797 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.5395, allocations: 6.75 kB / 0.673 GB, free: 9.797 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.5395, allocations: 0 / 0.673 GB, free: 9.797 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003709/0.5398, allocations: 118.1 kB / 0.6731 GB, free: 9.742 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002572/0.5401, allocations: 55.25 kB / 0.6732 GB, free: 9.723 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002482/0.5426, allocations: 2.123 MB / 0.6752 GB, free: 7.48 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002128/0.5428, allocations: 15.97 kB / 0.6752 GB, free: 7.465 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.443e-05/0.5429, allocations: 15.98 kB / 0.6753 GB, free: 7.449 MB / 494.1 MB 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.0002213/0.5431, allocations: 161.9 kB / 0.6754 GB, free: 7.281 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.951e-05/0.5432, allocations: 55.36 kB / 0.6755 GB, free: 7.227 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001099/0.5443, allocations: 0.6514 MB / 0.6761 GB, free: 6.539 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.5443, allocations: 8.688 kB / 0.6761 GB, free: 6.531 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.5443, allocations: 0 / 0.6761 GB, free: 6.531 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.5443, allocations: 7.984 kB / 0.6761 GB, free: 6.523 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000462/0.5448, allocations: 429.3 kB / 0.6765 GB, free: 6.055 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.5448, allocations: 3.984 kB / 0.6765 GB, free: 6.051 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001834/0.545, allocations: 32.47 kB / 0.6766 GB, free: 6.02 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003409/0.5454, allocations: 124.7 kB / 0.6767 GB, free: 5.895 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.869e-05/0.5454, allocations: 11.98 kB / 0.6767 GB, free: 5.883 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002358/0.5478, allocations: 2.132 MB / 0.6788 GB, free: 3.617 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.5478, allocations: 7.938 kB / 0.6788 GB, free: 3.609 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001037/0.5488, allocations: 0.6419 MB / 0.6794 GB, free: 2.945 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001099/0.5489, allocations: 124.6 kB / 0.6795 GB, free: 2.805 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.282e-05/0.549, allocations: 11.94 kB / 0.6795 GB, free: 2.793 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001902/0.5492, allocations: 11.94 kB / 0.6796 GB, free: 2.781 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.878e-05/0.5493, allocations: 23.95 kB / 0.6796 GB, free: 2.758 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.099e-05/0.5493, allocations: 7.984 kB / 0.6796 GB, free: 2.75 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003216/0.5496, allocations: 303.1 kB / 0.6799 GB, free: 2.461 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5496, allocations: 0 / 0.6799 GB, free: 2.461 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005163/0.5502, allocations: 108 kB / 0.68 GB, free: 2.355 MB / 494.1 MB 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.0002935/0.5505, allocations: 187.4 kB / 0.6802 GB, free: 2.16 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00097/0.5514, allocations: 0.5256 MB / 0.6807 GB, free: 1.621 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.5514, allocations: 0 / 0.6807 GB, free: 1.621 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006166/0.5521, allocations: 370.4 kB / 0.681 GB, free: 1.246 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006813/0.5528, allocations: 107.4 kB / 0.6811 GB, free: 1.145 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00162/0.5544, allocations: 1.081 MB / 0.6822 GB, free: 36 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003958/0.5548, allocations: 0.823 MB / 0.683 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002759/0.5551, allocations: 91.17 kB / 0.6831 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001024/0.5552, allocations: 39.41 kB / 0.6831 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of SimCode: time 5.01e-07/0.5552, allocations: 0 / 0.6831 GB, free: 15.06 MB / 0.4981 GB Notification: Performance of Templates: time 0.01342/0.5686, allocations: 6.683 MB / 0.6896 GB, free: 8.422 MB / 0.4981 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