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.001504/0.001508, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001969/0.001969, allocations: 193.3 kB / 16.14 MB, free: 6.719 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.416/1.416, allocations: 222.9 MB / 239.8 MB, free: 4.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6475/0.6475, allocations: 91.2 MB / 381.2 MB, free: 9.586 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002617/0.002617, allocations: 81.56 kB / 459.6 MB, free: 23.41 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1312, allocations: 67.7 MB / 0.515 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.389/0.5203, allocations: 142.7 MB / 0.6543 GB, free: 7.996 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004803/0.5251, allocations: 4.591 MB / 0.6588 GB, free: 4.281 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003652/0.5255, allocations: 25.34 kB / 0.6588 GB, free: 4.27 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006283/0.5261, allocations: 171.2 kB / 0.659 GB, free: 4.133 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000628/0.5268, allocations: 271 kB / 0.6592 GB, free: 3.914 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009315/0.5277, allocations: 395.4 kB / 0.6596 GB, free: 3.625 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006874/0.5284, allocations: 0.8403 MB / 0.6604 GB, free: 3.156 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002016/0.5286, allocations: 102.2 kB / 0.6605 GB, free: 3.105 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005662/0.5292, allocations: 342.5 kB / 0.6608 GB, free: 2.902 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003719/0.5296, allocations: 323.4 kB / 0.6611 GB, free: 2.723 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 4.203e-05/0.5297, allocations: 20 kB / 0.6612 GB, free: 2.723 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007275/0.5304, allocations: 445.5 kB / 0.6616 GB, free: 2.52 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 9.661e-05/0.5305, allocations: 92.56 kB / 0.6617 GB, free: 2.453 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001716/0.5307, allocations: 196.7 kB / 0.6619 GB, free: 2.324 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000599/0.5313, allocations: 0.5626 MB / 0.6624 GB, free: 1.961 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.5313, allocations: 0 / 0.6624 GB, free: 1.961 MB / 478.1 MB Notification: Performance of FrontEnd: time 7.62e-07/0.5313, allocations: 0 / 0.6624 GB, free: 1.961 MB / 478.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.5313, allocations: 0 / 0.6624 GB, free: 1.961 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.001383/0.5327, allocations: 0.7893 MB / 0.6632 GB, free: 1.312 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.107e-05/0.5327, allocations: 7.531 kB / 0.6632 GB, free: 1.312 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.899e-05/0.5328, allocations: 50.48 kB / 0.6632 GB, free: 1.285 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004872/0.5333, allocations: 423.3 kB / 0.6636 GB, free: 0.9141 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.477e-05/0.5334, allocations: 19.25 kB / 0.6637 GB, free: 0.9062 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.338e-05/0.5334, allocations: 23.72 kB / 0.6637 GB, free: 0.8984 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006286/0.5341, allocations: 441.7 kB / 0.6641 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.5341, allocations: 0 / 0.6641 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.287e-05/0.5341, allocations: 14.75 kB / 0.6641 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.973e-05/0.5342, allocations: 19.17 kB / 0.6641 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006618/0.5348, allocations: 488.3 kB / 0.6646 GB, free: 356 kB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001921/0.5367, allocations: 1.441 MB / 0.666 GB, free: 15.15 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004079/0.5372, allocations: 243 kB / 0.6662 GB, free: 15.02 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002831/0.5375, allocations: 206.2 kB / 0.6664 GB, free: 14.91 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000254/0.5377, allocations: 329.3 kB / 0.6668 GB, free: 14.53 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.387e-05/0.5378, allocations: 40.67 kB / 0.6668 GB, free: 14.48 MB / 494.1 MB Notification: Performance of pre-optimization done (n=32): time 1.473e-06/0.5378, allocations: 0 / 0.6668 GB, free: 14.48 MB / 494.1 MB Notification: Performance of matching and sorting (n=33): time 0.002451/0.5402, allocations: 1.529 MB / 0.6683 GB, free: 13.35 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.111e-05/0.5403, allocations: 56.22 kB / 0.6683 GB, free: 13.29 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003411/0.5406, allocations: 372.8 kB / 0.6687 GB, free: 13.06 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.978e-05/0.5407, allocations: 32.61 kB / 0.6687 GB, free: 13.02 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001173/0.5408, allocations: 190.5 kB / 0.6689 GB, free: 12.85 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.446e-05/0.5409, allocations: 118.5 kB / 0.669 GB, free: 12.74 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.541, allocations: 66.48 kB / 0.6691 GB, free: 12.7 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.5411, allocations: 353.2 kB / 0.6694 GB, free: 12.35 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002266/0.5413, allocations: 143.7 kB / 0.6696 GB, free: 12.28 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002237/0.5416, allocations: 149.5 kB / 0.6697 GB, free: 12.2 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004892/0.5421, allocations: 337.8 kB / 0.67 GB, free: 12.03 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.5421, allocations: 3.5 kB / 0.67 GB, free: 12.03 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008293/0.5429, allocations: 0.5146 MB / 0.6705 GB, free: 11.74 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.5429, allocations: 5 kB / 0.6705 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.543, allocations: 1.25 kB / 0.6705 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003568/0.5433, allocations: 119.4 kB / 0.6706 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002589/0.5436, allocations: 54.98 kB / 0.6707 GB, free: 11.66 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002177/0.5458, allocations: 2.122 MB / 0.6728 GB, free: 9.789 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001987/0.546, allocations: 10.22 kB / 0.6728 GB, free: 9.781 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.415e-05/0.546, allocations: 16 kB / 0.6728 GB, free: 9.773 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.0001732/0.5462, allocations: 171.9 kB / 0.673 GB, free: 9.617 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.962e-05/0.5463, allocations: 39.88 kB / 0.673 GB, free: 9.598 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009948/0.5473, allocations: 0.6599 MB / 0.6736 GB, free: 9.129 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.5473, allocations: 6.656 kB / 0.6736 GB, free: 9.125 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.5473, allocations: 2.094 kB / 0.6737 GB, free: 9.125 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.5473, allocations: 0 / 0.6737 GB, free: 9.125 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004146/0.5477, allocations: 442.9 kB / 0.6741 GB, free: 8.746 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.5478, allocations: 0 / 0.6741 GB, free: 8.746 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001835/0.5479, allocations: 31.73 kB / 0.6741 GB, free: 8.734 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003173/0.5483, allocations: 115 kB / 0.6742 GB, free: 8.68 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.018e-05/0.5483, allocations: 20.77 kB / 0.6742 GB, free: 8.668 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002204/0.5505, allocations: 2.118 MB / 0.6763 GB, free: 6.797 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.5505, allocations: 3.938 kB / 0.6763 GB, free: 6.793 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009904/0.5515, allocations: 0.6463 MB / 0.6769 GB, free: 6.398 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.619e-05/0.5516, allocations: 111.3 kB / 0.677 GB, free: 6.281 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.868e-05/0.5517, allocations: 10.16 kB / 0.6771 GB, free: 6.273 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001891/0.5519, allocations: 10.53 kB / 0.6771 GB, free: 6.266 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.1e-05/0.552, allocations: 26.14 kB / 0.6771 GB, free: 6.25 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.426e-05/0.552, allocations: 9.453 kB / 0.6771 GB, free: 6.246 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002872/0.5523, allocations: 301 kB / 0.6774 GB, free: 6.066 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5523, allocations: 2.938 kB / 0.6774 GB, free: 6.066 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004806/0.5528, allocations: 105.3 kB / 0.6775 GB, free: 6.055 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.0002557/0.553, allocations: 196.8 kB / 0.6777 GB, free: 5.906 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0008491/0.5539, allocations: 0.5112 MB / 0.6782 GB, free: 5.586 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.5539, allocations: 0 / 0.6782 GB, free: 5.586 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005605/0.5545, allocations: 366.1 kB / 0.6785 GB, free: 5.336 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000594/0.5551, allocations: 109.3 kB / 0.6786 GB, free: 5.281 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00149/0.5566, allocations: 1.026 MB / 0.6796 GB, free: 4.559 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003157/0.5569, allocations: 0.8219 MB / 0.6804 GB, free: 3.801 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002297/0.5571, allocations: 88.17 kB / 0.6805 GB, free: 3.762 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.74e-05/0.5572, allocations: 41.53 kB / 0.6806 GB, free: 3.742 MB / 494.1 MB Notification: Performance of SimCode: time 2.9e-07/0.5572, allocations: 3.938 kB / 0.6806 GB, free: 3.738 MB / 494.1 MB Notification: Performance of Templates: time 0.01074/0.568, allocations: 6.788 MB / 0.6872 GB, free: 14.96 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