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.001414/0.001414, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001775/0.001774, allocations: 193.5 kB / 16.14 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.376/1.376, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8325/0.8325, allocations: 91.2 MB / 381.2 MB, free: 9.586 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001635/0.001635, allocations: 83.23 kB / 459.6 MB, free: 23.41 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1154, allocations: 67.69 MB / 0.515 GB, free: 10.66 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.4034/0.5189, allocations: 142.7 MB / 0.6543 GB, free: 8.008 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.005139/0.5241, allocations: 4.592 MB / 0.6588 GB, free: 4.293 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004943/0.5246, allocations: 27.53 kB / 0.6588 GB, free: 4.281 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006491/0.5253, allocations: 168.4 kB / 0.659 GB, free: 4.145 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006924/0.526, allocations: 271.3 kB / 0.6592 GB, free: 3.926 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001012/0.5271, allocations: 396 kB / 0.6596 GB, free: 3.637 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008144/0.5279, allocations: 0.8357 MB / 0.6604 GB, free: 3.172 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001924/0.5281, allocations: 111.4 kB / 0.6605 GB, free: 3.113 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006209/0.5287, allocations: 332.2 kB / 0.6608 GB, free: 2.918 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003995/0.5291, allocations: 323.5 kB / 0.6611 GB, free: 2.738 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 4.735e-05/0.5292, allocations: 26.66 kB / 0.6612 GB, free: 2.734 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008129/0.53, allocations: 445.7 kB / 0.6616 GB, free: 2.531 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001049/0.5301, allocations: 92.66 kB / 0.6617 GB, free: 2.465 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001746/0.5303, allocations: 191.9 kB / 0.6619 GB, free: 2.34 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006821/0.531, allocations: 0.5647 MB / 0.6624 GB, free: 1.973 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.531, allocations: 0 / 0.6624 GB, free: 1.973 MB / 478.1 MB Notification: Performance of FrontEnd: time 7.31e-07/0.531, allocations: 6.438 kB / 0.6624 GB, free: 1.969 MB / 478.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.531, allocations: 0 / 0.6624 GB, free: 1.969 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.00161/0.5327, allocations: 0.7864 MB / 0.6632 GB, free: 1.32 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.5327, allocations: 9.562 kB / 0.6632 GB, free: 1.32 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.531e-05/0.5328, allocations: 47 kB / 0.6632 GB, free: 1.297 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000532/0.5333, allocations: 425.1 kB / 0.6637 GB, free: 0.9219 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.963e-05/0.5334, allocations: 18.75 kB / 0.6637 GB, free: 0.9141 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.482e-05/0.5335, allocations: 26.5 kB / 0.6637 GB, free: 0.9062 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006654/0.5341, allocations: 439.4 kB / 0.6641 GB, free: 0.6211 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.5341, allocations: 6.469 kB / 0.6641 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.392e-05/0.5342, allocations: 10.25 kB / 0.6641 GB, free: 0.6094 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.164e-05/0.5342, allocations: 17.58 kB / 0.6641 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007127/0.5349, allocations: 479.5 kB / 0.6646 GB, free: 372 kB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002029/0.537, allocations: 1.441 MB / 0.666 GB, free: 15.16 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004648/0.5375, allocations: 239.5 kB / 0.6662 GB, free: 15.03 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002996/0.5378, allocations: 209.8 kB / 0.6664 GB, free: 14.92 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002792/0.5381, allocations: 339.3 kB / 0.6668 GB, free: 14.53 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/0.5381, allocations: 38.55 kB / 0.6668 GB, free: 14.48 MB / 494.1 MB Notification: Performance of pre-optimization done (n=32): time 1.633e-06/0.5381, allocations: 2.875 kB / 0.6668 GB, free: 14.48 MB / 494.1 MB Notification: Performance of matching and sorting (n=33): time 0.002638/0.5407, allocations: 1.526 MB / 0.6683 GB, free: 13.36 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.899e-05/0.5408, allocations: 60.31 kB / 0.6684 GB, free: 13.29 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003691/0.5412, allocations: 375.7 kB / 0.6687 GB, free: 13.06 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.04e-05/0.5412, allocations: 29.7 kB / 0.6687 GB, free: 13.02 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001397/0.5414, allocations: 185.5 kB / 0.6689 GB, free: 12.85 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.5415, allocations: 117.4 kB / 0.669 GB, free: 12.75 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/0.5416, allocations: 64.89 kB / 0.6691 GB, free: 12.7 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.5418, allocations: 352.3 kB / 0.6694 GB, free: 12.36 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002349/0.542, allocations: 142.1 kB / 0.6696 GB, free: 12.29 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002361/0.5422, allocations: 150.8 kB / 0.6697 GB, free: 12.21 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005262/0.5428, allocations: 348.4 kB / 0.67 GB, free: 12.03 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.5428, allocations: 0 / 0.67 GB, free: 12.03 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008838/0.5437, allocations: 0.5092 MB / 0.6705 GB, free: 11.75 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.5437, allocations: 4.531 kB / 0.6705 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.463e-06/0.5437, allocations: 4 kB / 0.6705 GB, free: 11.74 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003685/0.5441, allocations: 111.8 kB / 0.6706 GB, free: 11.69 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002661/0.5444, allocations: 59.12 kB / 0.6707 GB, free: 11.67 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002427/0.5468, allocations: 2.112 MB / 0.6728 GB, free: 9.805 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002012/0.547, allocations: 16.81 kB / 0.6728 GB, free: 9.793 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.239e-05/0.5471, allocations: 15.83 kB / 0.6728 GB, free: 9.785 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.0001878/0.5473, allocations: 168.1 kB / 0.673 GB, free: 9.633 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.217e-05/0.5474, allocations: 43.84 kB / 0.673 GB, free: 9.609 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001046/0.5484, allocations: 0.6614 MB / 0.6736 GB, free: 9.141 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.5484, allocations: 6.688 kB / 0.6737 GB, free: 9.137 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.5484, allocations: 0 / 0.6737 GB, free: 9.137 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.5484, allocations: 2.125 kB / 0.6737 GB, free: 9.137 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004523/0.5489, allocations: 432.8 kB / 0.6741 GB, free: 8.766 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.5489, allocations: 3.938 kB / 0.6741 GB, free: 8.762 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001863/0.5491, allocations: 35.7 kB / 0.6741 GB, free: 8.746 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003345/0.5495, allocations: 122.3 kB / 0.6742 GB, free: 8.688 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.223e-05/0.5495, allocations: 10.92 kB / 0.6742 GB, free: 8.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002303/0.5518, allocations: 2.126 MB / 0.6763 GB, free: 6.805 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.5518, allocations: 0 / 0.6763 GB, free: 6.805 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.5528, allocations: 0.6532 MB / 0.6769 GB, free: 6.402 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.216e-05/0.5529, allocations: 110.5 kB / 0.6771 GB, free: 6.285 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.002e-05/0.553, allocations: 10.47 kB / 0.6771 GB, free: 6.277 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001904/0.5532, allocations: 9.125 kB / 0.6771 GB, free: 6.273 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.958e-05/0.5533, allocations: 22.95 kB / 0.6771 GB, free: 6.258 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.427e-05/0.5533, allocations: 9.828 kB / 0.6771 GB, free: 6.254 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003289/0.5536, allocations: 303.8 kB / 0.6774 GB, free: 6.074 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5536, allocations: 0 / 0.6774 GB, free: 6.074 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004887/0.5541, allocations: 104.9 kB / 0.6775 GB, free: 6.062 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.0002589/0.5544, allocations: 189 kB / 0.6777 GB, free: 5.922 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009428/0.5554, allocations: 0.5185 MB / 0.6782 GB, free: 5.594 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.5554, allocations: 0 / 0.6782 GB, free: 5.594 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006043/0.556, allocations: 365.6 kB / 0.6785 GB, free: 5.344 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006201/0.5566, allocations: 107.5 kB / 0.6786 GB, free: 5.289 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001686/0.5583, allocations: 1.024 MB / 0.6796 GB, free: 4.566 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004599/0.5588, allocations: 0.8196 MB / 0.6804 GB, free: 3.809 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002486/0.559, allocations: 88.11 kB / 0.6805 GB, free: 3.77 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.763e-05/0.5592, allocations: 41.94 kB / 0.6806 GB, free: 3.75 MB / 494.1 MB Notification: Performance of SimCode: time 7.02e-07/0.5592, allocations: 0 / 0.6806 GB, free: 3.75 MB / 494.1 MB Notification: Performance of Templates: time 0.01165/0.5708, allocations: 6.784 MB / 0.6872 GB, free: 15 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