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.001144/0.001144, allocations: 108 kB / 15.99 MB, free: 5.895 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.001035/0.001035, allocations: 193.4 kB / 16.91 MB, free: 5.746 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.3/1.3, allocations: 222.9 MB / 240.6 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6452/0.6452, allocations: 91.19 MB / 381.9 MB, free: 9.531 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 88.66 kB / 460.5 MB, free: 23.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1141, allocations: 67.69 MB / 0.5158 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.3914/0.5055, allocations: 142.8 MB / 0.6553 GB, free: 8.055 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004849/0.5104, allocations: 4.558 MB / 0.6597 GB, free: 4.363 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004252/0.5109, allocations: 26.62 kB / 0.6597 GB, free: 4.352 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006584/0.5116, allocations: 170.6 kB / 0.6599 GB, free: 4.215 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006535/0.5123, allocations: 263.2 kB / 0.6602 GB, free: 4.004 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001002/0.5133, allocations: 411.6 kB / 0.6606 GB, free: 3.703 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006479/0.5139, allocations: 0.6611 MB / 0.6612 GB, free: 3.32 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002041/0.5141, allocations: 117 kB / 0.6613 GB, free: 3.262 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005971/0.5148, allocations: 359.4 kB / 0.6617 GB, free: 3.047 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004055/0.5152, allocations: 331.8 kB / 0.662 GB, free: 2.859 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 5.793e-05/0.5152, allocations: 30.34 kB / 0.662 GB, free: 2.859 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007886/0.516, allocations: 466.7 kB / 0.6624 GB, free: 2.648 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001037/0.5161, allocations: 102.5 kB / 0.6625 GB, free: 2.57 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001845/0.5163, allocations: 208.4 kB / 0.6627 GB, free: 2.43 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005121/0.5169, allocations: 450.6 kB / 0.6632 GB, free: 2.16 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.5169, allocations: 0 / 0.6632 GB, free: 2.16 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.5169, allocations: 0 / 0.6632 GB, free: 2.16 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.5169, allocations: 0 / 0.6632 GB, free: 2.16 MB / 478.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.001449/0.5183, allocations: 0.7933 MB / 0.6639 GB, free: 1.508 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.5184, allocations: 9.906 kB / 0.664 GB, free: 1.508 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.995e-05/0.5185, allocations: 44.94 kB / 0.664 GB, free: 1.484 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005126/0.519, allocations: 425.9 kB / 0.6644 GB, free: 1.109 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.939e-05/0.519, allocations: 19.44 kB / 0.6644 GB, free: 1.102 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.891e-05/0.5191, allocations: 23.56 kB / 0.6644 GB, free: 1.094 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006281/0.5197, allocations: 441.9 kB / 0.6649 GB, free: 0.8047 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.5198, allocations: 0 / 0.6649 GB, free: 0.8047 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.317e-05/0.5198, allocations: 10.72 kB / 0.6649 GB, free: 0.7969 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.239e-05/0.5198, allocations: 15.03 kB / 0.6649 GB, free: 0.7969 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000649/0.5205, allocations: 487.7 kB / 0.6654 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001924/0.5224, allocations: 1.447 MB / 0.6668 GB, free: 15.35 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004244/0.5229, allocations: 241.7 kB / 0.667 GB, free: 15.21 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002901/0.5232, allocations: 206.4 kB / 0.6672 GB, free: 15.11 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002957/0.5235, allocations: 337 kB / 0.6675 GB, free: 14.72 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.5235, allocations: 40.95 kB / 0.6676 GB, free: 14.67 MB / 494.1 MB Notification: Performance of pre-optimization done (n=32): time 1.463e-06/0.5235, allocations: 0 / 0.6676 GB, free: 14.67 MB / 494.1 MB Notification: Performance of matching and sorting (n=33): time 0.002475/0.526, allocations: 1.528 MB / 0.669 GB, free: 13.54 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.588e-05/0.526, allocations: 56.38 kB / 0.6691 GB, free: 13.48 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003524/0.5264, allocations: 369.5 kB / 0.6695 GB, free: 13.25 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.404e-05/0.5264, allocations: 31.61 kB / 0.6695 GB, free: 13.22 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.5266, allocations: 194.8 kB / 0.6697 GB, free: 13.04 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.5267, allocations: 114.9 kB / 0.6698 GB, free: 12.94 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/0.5268, allocations: 66.89 kB / 0.6698 GB, free: 12.89 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.527, allocations: 348.8 kB / 0.6702 GB, free: 12.55 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000224/0.5272, allocations: 139.8 kB / 0.6703 GB, free: 12.48 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002743/0.5275, allocations: 157 kB / 0.6705 GB, free: 12.4 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005053/0.528, allocations: 340.2 kB / 0.6708 GB, free: 12.23 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.528, allocations: 0 / 0.6708 GB, free: 12.23 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008569/0.5289, allocations: 0.5124 MB / 0.6713 GB, free: 11.94 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.5289, allocations: 4.531 kB / 0.6713 GB, free: 11.94 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.5289, allocations: 0 / 0.6713 GB, free: 11.94 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003614/0.5293, allocations: 120.3 kB / 0.6714 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002649/0.5295, allocations: 58.69 kB / 0.6715 GB, free: 11.86 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002561/0.5321, allocations: 2.339 MB / 0.6737 GB, free: 9.789 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002161/0.5323, allocations: 14.28 kB / 0.6738 GB, free: 9.777 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.564e-05/0.5324, allocations: 15.95 kB / 0.6738 GB, free: 9.77 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.0002001/0.5326, allocations: 164 kB / 0.6739 GB, free: 9.621 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.169e-05/0.5327, allocations: 43.12 kB / 0.674 GB, free: 9.598 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001039/0.5337, allocations: 0.652 MB / 0.6746 GB, free: 9.137 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.5337, allocations: 14.97 kB / 0.6746 GB, free: 9.125 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.5337, allocations: 2.812 kB / 0.6746 GB, free: 9.125 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.5338, allocations: 0 / 0.6746 GB, free: 9.125 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004579/0.5342, allocations: 436.4 kB / 0.675 GB, free: 8.75 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.5342, allocations: 0 / 0.675 GB, free: 8.75 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001792/0.5344, allocations: 35.55 kB / 0.6751 GB, free: 8.734 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003264/0.5348, allocations: 130.6 kB / 0.6752 GB, free: 8.668 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.842e-05/0.5348, allocations: 10.67 kB / 0.6752 GB, free: 8.66 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002466/0.5373, allocations: 2.337 MB / 0.6775 GB, free: 6.59 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.5373, allocations: 0 / 0.6775 GB, free: 6.59 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.5383, allocations: 0.6434 MB / 0.6781 GB, free: 6.199 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.449e-05/0.5384, allocations: 110.6 kB / 0.6782 GB, free: 6.082 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.503e-05/0.5385, allocations: 6.906 kB / 0.6782 GB, free: 6.078 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001834/0.5387, allocations: 10.88 kB / 0.6782 GB, free: 6.07 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.716e-05/0.5388, allocations: 25.98 kB / 0.6783 GB, free: 6.055 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.711e-05/0.5388, allocations: 15.08 kB / 0.6783 GB, free: 6.047 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002996/0.5391, allocations: 293.4 kB / 0.6786 GB, free: 5.875 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5391, allocations: 0 / 0.6786 GB, free: 5.875 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0005188/0.5396, allocations: 116.8 kB / 0.6787 GB, free: 5.852 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.0003106/0.5399, allocations: 181.9 kB / 0.6788 GB, free: 5.719 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000935/0.5409, allocations: 0.53 MB / 0.6794 GB, free: 5.391 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.5409, allocations: 4 kB / 0.6794 GB, free: 5.387 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000567/0.5415, allocations: 369.7 kB / 0.6797 GB, free: 5.133 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005814/0.5421, allocations: 105.4 kB / 0.6798 GB, free: 5.078 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001553/0.5436, allocations: 1.063 MB / 0.6809 GB, free: 4.309 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003358/0.544, allocations: 0.8199 MB / 0.6817 GB, free: 3.551 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001237/0.5441, allocations: 48.2 kB / 0.6817 GB, free: 3.527 MB / 494.1 MB Notification: Performance of SimCode: time 8.01e-07/0.5441, allocations: 0 / 0.6817 GB, free: 3.527 MB / 494.1 MB Notification: Performance of Templates: time 0.01062/0.5547, allocations: 8.561 MB / 0.6901 GB, free: 12.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches