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.001441/0.001441, allocations: 104.6 kB / 16.35 MB, free: 5.887 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.001822/0.001822, allocations: 192.3 kB / 17.29 MB, free: 5.527 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.326/1.326, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.655/0.655, allocations: 89.49 MB / 380.6 MB, free: 8.668 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 75.89 kB / 459.7 MB, free: 10.61 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1098, allocations: 67.3 MB / 0.5146 GB, free: 7.23 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.3188/0.4286, allocations: 144.3 MB / 0.6556 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.004405/0.433, allocations: 4.497 MB / 0.66 GB, free: 2.473 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001504/0.4332, allocations: 7.938 kB / 0.66 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0005436/0.4338, allocations: 190.8 kB / 0.6602 GB, free: 2.277 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0004835/0.4343, allocations: 250.5 kB / 0.6604 GB, free: 2.031 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008597/0.4352, allocations: 426.4 kB / 0.6608 GB, free: 1.613 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0005393/0.4357, allocations: 0.5769 MB / 0.6614 GB, free: 1.035 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001876/0.4359, allocations: 105.9 kB / 0.6615 GB, free: 0.9336 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004874/0.4364, allocations: 306.8 kB / 0.6618 GB, free: 0.6328 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003875/0.4368, allocations: 307.1 kB / 0.662 GB, free: 340 kB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.585e-05/0.4369, allocations: 36 kB / 0.6621 GB, free: 304 kB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007451/0.4376, allocations: 463.1 kB / 0.6625 GB, free: 15.84 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 8.246e-05/0.4377, allocations: 91.72 kB / 0.6626 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0001583/0.4379, allocations: 179.2 kB / 0.6628 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0006007/0.4385, allocations: 0.5274 MB / 0.6633 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.4385, allocations: 0 / 0.6633 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.202e-06/0.4385, allocations: 4 kB / 0.6633 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.4385, allocations: 1.406 kB / 0.6633 GB, free: 15.05 MB / 0.5137 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.001292/0.4398, allocations: 0.7019 MB / 0.664 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/0.4399, allocations: 12.03 kB / 0.664 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.628e-05/0.4399, allocations: 32.56 kB / 0.664 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003417/0.4403, allocations: 294.4 kB / 0.6643 GB, free: 13.94 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.514e-05/0.4403, allocations: 16.94 kB / 0.6643 GB, free: 13.92 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.818e-05/0.4404, allocations: 28.28 kB / 0.6644 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006065/0.441, allocations: 449.5 kB / 0.6648 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.441, allocations: 0 / 0.6648 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.869e-05/0.441, allocations: 9.969 kB / 0.6648 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.944e-05/0.4411, allocations: 20.55 kB / 0.6648 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006801/0.4418, allocations: 481.8 kB / 0.6653 GB, free: 12.94 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001912/0.4437, allocations: 1.399 MB / 0.6666 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004137/0.4441, allocations: 261.2 kB / 0.6669 GB, free: 11.19 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002963/0.4444, allocations: 204.8 kB / 0.6671 GB, free: 10.99 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002581/0.4447, allocations: 328.4 kB / 0.6674 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.823e-05/0.4447, allocations: 38.56 kB / 0.6674 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=32): time 2.655e-06/0.4447, allocations: 6.375 kB / 0.6674 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of matching and sorting (n=33): time 0.002407/0.4471, allocations: 1.489 MB / 0.6689 GB, free: 8.941 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.255e-05/0.4472, allocations: 55.41 kB / 0.6689 GB, free: 8.875 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002383/0.4474, allocations: 263 kB / 0.6692 GB, free: 8.609 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.029e-05/0.4475, allocations: 33.7 kB / 0.6692 GB, free: 8.57 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 7.944e-05/0.4476, allocations: 144.6 kB / 0.6694 GB, free: 8.426 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 9.256e-05/0.4477, allocations: 118.3 kB / 0.6695 GB, free: 8.309 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.4478, allocations: 69.67 kB / 0.6695 GB, free: 8.234 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001059/0.4479, allocations: 346.8 kB / 0.6699 GB, free: 7.887 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002217/0.4481, allocations: 139.9 kB / 0.67 GB, free: 7.75 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002233/0.4483, allocations: 149.3 kB / 0.6702 GB, free: 7.605 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005032/0.4488, allocations: 345 kB / 0.6705 GB, free: 7.266 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.4489, allocations: 0 / 0.6705 GB, free: 7.266 MB / 0.5137 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008252/0.4497, allocations: 0.5053 MB / 0.671 GB, free: 6.75 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.4497, allocations: 9.969 kB / 0.671 GB, free: 6.742 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.4497, allocations: 0 / 0.671 GB, free: 6.742 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003486/0.4501, allocations: 112.8 kB / 0.6711 GB, free: 6.629 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002614/0.4503, allocations: 51.95 kB / 0.6711 GB, free: 6.578 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002418/0.4528, allocations: 2.34 MB / 0.6734 GB, free: 4.102 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001778/0.453, allocations: 7.938 kB / 0.6734 GB, free: 4.094 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.444e-05/0.453, allocations: 12.03 kB / 0.6734 GB, free: 4.082 MB / 0.5137 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.0001643/0.4532, allocations: 167.5 kB / 0.6736 GB, free: 3.91 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.154e-05/0.4533, allocations: 32.25 kB / 0.6736 GB, free: 3.879 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001015/0.4543, allocations: 0.6407 MB / 0.6743 GB, free: 3.219 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.4543, allocations: 4 kB / 0.6743 GB, free: 3.215 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.4543, allocations: 0 / 0.6743 GB, free: 3.215 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.4543, allocations: 3.984 kB / 0.6743 GB, free: 3.211 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003905/0.4547, allocations: 405.2 kB / 0.6747 GB, free: 2.766 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.4547, allocations: 0.9375 kB / 0.6747 GB, free: 2.766 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000185/0.4549, allocations: 35.91 kB / 0.6747 GB, free: 2.73 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003246/0.4552, allocations: 131.7 kB / 0.6748 GB, free: 2.602 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.375e-05/0.4553, allocations: 15.97 kB / 0.6748 GB, free: 2.586 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002291/0.4576, allocations: 2.325 MB / 0.6771 GB, free: 124 kB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.4576, allocations: 4.5 kB / 0.6771 GB, free: 120 kB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009954/0.4586, allocations: 0.6334 MB / 0.6777 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 7.011e-05/0.4587, allocations: 96.86 kB / 0.6778 GB, free: 15.35 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.407e-05/0.4587, allocations: 8.109 kB / 0.6778 GB, free: 15.34 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001758/0.4589, allocations: 16.48 kB / 0.6778 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.932e-05/0.459, allocations: 27.97 kB / 0.6779 GB, free: 15.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.307e-05/0.459, allocations: 7.984 kB / 0.6779 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0002128/0.4592, allocations: 231 kB / 0.6781 GB, free: 15.06 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4592, allocations: 0 / 0.6781 GB, free: 15.06 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0004706/0.4597, allocations: 104 kB / 0.6782 GB, free: 14.96 MB / 0.5294 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.0002554/0.46, allocations: 186.3 kB / 0.6784 GB, free: 14.78 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0008657/0.4609, allocations: 0.5134 MB / 0.6789 GB, free: 14.26 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4609, allocations: 0 / 0.6789 GB, free: 14.26 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0005846/0.4615, allocations: 374.1 kB / 0.6792 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005203/0.462, allocations: 101.8 kB / 0.6793 GB, free: 13.79 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.4633, allocations: 0.797 MB / 0.6801 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003279/0.4637, allocations: 0.795 MB / 0.6809 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0002189/0.4639, allocations: 75.75 kB / 0.681 GB, free: 12.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.359e-05/0.464, allocations: 35.41 kB / 0.681 GB, free: 12.07 MB / 0.5294 GB Notification: Performance of SimCode: time 3.4e-07/0.464, allocations: 0.75 kB / 0.681 GB, free: 12.07 MB / 0.5294 GB Notification: Performance of Templates: time 0.01118/0.4752, allocations: 6.738 MB / 0.6876 GB, free: 5.488 MB / 0.5294 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 -s gbode -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