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.0009525/0.0009524, allocations: 97.78 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 187.3 kB / 16.92 MB, free: 6.75 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.336/1.336, allocations: 223.3 MB / 241 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6234/0.6234, allocations: 89.63 MB / 381.7 MB, free: 11.34 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003375/0.0003376, allocations: 10.72 kB / 461.3 MB, free: 24.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1103, allocations: 68.83 MB / 0.5177 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.3871/0.4975, allocations: 140.6 MB / 0.655 GB, free: 9.199 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004759/0.5023, allocations: 4.468 MB / 0.6594 GB, free: 5.582 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003771/0.5027, allocations: 6.25 kB / 0.6594 GB, free: 5.578 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006458/0.5033, allocations: 184.7 kB / 0.6596 GB, free: 5.43 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007679/0.5041, allocations: 228.7 kB / 0.6598 GB, free: 5.25 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001045/0.5052, allocations: 400.7 kB / 0.6602 GB, free: 4.957 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007591/0.506, allocations: 0.751 MB / 0.6609 GB, free: 4.543 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001947/0.5062, allocations: 91.72 kB / 0.661 GB, free: 4.504 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006534/0.5068, allocations: 276.6 kB / 0.6613 GB, free: 4.348 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005235/0.5074, allocations: 289.6 kB / 0.6615 GB, free: 4.195 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 6.042e-05/0.5074, allocations: 16.66 kB / 0.6616 GB, free: 4.195 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008319/0.5083, allocations: 444.5 kB / 0.662 GB, free: 3.988 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001064/0.5084, allocations: 73.44 kB / 0.6621 GB, free: 3.938 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002737/0.5087, allocations: 183.4 kB / 0.6622 GB, free: 3.809 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005358/0.5092, allocations: 384.2 kB / 0.6626 GB, free: 3.574 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.5092, allocations: 0 / 0.6626 GB, free: 3.574 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5092, allocations: 0 / 0.6626 GB, free: 3.574 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.5093, allocations: 0 / 0.6626 GB, free: 3.574 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.001348/0.5106, allocations: 0.6343 MB / 0.6632 GB, free: 3.031 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.5107, allocations: 10.75 kB / 0.6632 GB, free: 3.031 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.483e-05/0.5108, allocations: 31.62 kB / 0.6633 GB, free: 3.016 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003617/0.5111, allocations: 303 kB / 0.6635 GB, free: 2.723 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.5111, allocations: 15.81 kB / 0.6636 GB, free: 2.719 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.855e-05/0.5112, allocations: 25.06 kB / 0.6636 GB, free: 2.711 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006525/0.5119, allocations: 444.7 kB / 0.664 GB, free: 2.422 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.5119, allocations: 0 / 0.664 GB, free: 2.422 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.284e-05/0.5119, allocations: 10.89 kB / 0.664 GB, free: 2.414 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.541e-05/0.512, allocations: 22.36 kB / 0.664 GB, free: 2.406 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006818/0.5127, allocations: 479.5 kB / 0.6645 GB, free: 2.164 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001959/0.5146, allocations: 1.415 MB / 0.6659 GB, free: 0.9883 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004107/0.5151, allocations: 250.2 kB / 0.6661 GB, free: 0.8477 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002852/0.5154, allocations: 210.7 kB / 0.6663 GB, free: 0.7383 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002868/0.5157, allocations: 338.1 kB / 0.6666 GB, free: 356 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.534e-05/0.5157, allocations: 37.47 kB / 0.6667 GB, free: 312 kB / 478.1 MB Notification: Performance of pre-optimization done (n=32): time 1.503e-06/0.5157, allocations: 0 / 0.6667 GB, free: 312 kB / 478.1 MB Notification: Performance of matching and sorting (n=33): time 0.002473/0.5182, allocations: 1.498 MB / 0.6681 GB, free: 15.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/0.5182, allocations: 56 kB / 0.6682 GB, free: 15.14 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002651/0.5185, allocations: 270.1 kB / 0.6685 GB, free: 14.95 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.252e-05/0.5185, allocations: 32.55 kB / 0.6685 GB, free: 14.91 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.98e-05/0.5186, allocations: 147.5 kB / 0.6686 GB, free: 14.78 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.5187, allocations: 116.1 kB / 0.6687 GB, free: 14.68 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.315e-05/0.5188, allocations: 29.64 kB / 0.6688 GB, free: 14.65 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.5189, allocations: 347.8 kB / 0.6691 GB, free: 14.31 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002239/0.5192, allocations: 144.1 kB / 0.6692 GB, free: 14.23 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002073/0.5194, allocations: 144 kB / 0.6694 GB, free: 14.16 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004857/0.5199, allocations: 343.1 kB / 0.6697 GB, free: 13.98 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.5199, allocations: 0 / 0.6697 GB, free: 13.98 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008023/0.5207, allocations: 0.5074 MB / 0.6702 GB, free: 13.7 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.5207, allocations: 5.312 kB / 0.6702 GB, free: 13.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.5207, allocations: 0 / 0.6702 GB, free: 13.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003465/0.5211, allocations: 116.1 kB / 0.6703 GB, free: 13.64 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002444/0.5213, allocations: 55.58 kB / 0.6704 GB, free: 13.62 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002217/0.5236, allocations: 2.116 MB / 0.6724 GB, free: 11.76 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000184/0.5238, allocations: 17.03 kB / 0.6724 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.062e-05/0.5238, allocations: 13.84 kB / 0.6725 GB, free: 11.74 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.0001625/0.524, allocations: 160.6 kB / 0.6726 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.099e-05/0.524, allocations: 36.73 kB / 0.6726 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001006/0.525, allocations: 0.6408 MB / 0.6733 GB, free: 11.12 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.702e-06/0.5251, allocations: 7.75 kB / 0.6733 GB, free: 11.12 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.5251, allocations: 0 / 0.6733 GB, free: 11.12 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.5251, allocations: 0 / 0.6733 GB, free: 11.12 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000411/0.5255, allocations: 405.1 kB / 0.6737 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.5255, allocations: 0 / 0.6737 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002178/0.5257, allocations: 35.89 kB / 0.6737 GB, free: 10.67 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003476/0.5261, allocations: 124.4 kB / 0.6738 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.27e-05/0.5261, allocations: 11.98 kB / 0.6738 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002198/0.5283, allocations: 2.135 MB / 0.6759 GB, free: 8.27 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.5284, allocations: 3.938 kB / 0.6759 GB, free: 8.266 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009981/0.5294, allocations: 0.6342 MB / 0.6765 GB, free: 7.605 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.61e-05/0.5295, allocations: 112.8 kB / 0.6766 GB, free: 7.477 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.223e-05/0.5295, allocations: 11.94 kB / 0.6767 GB, free: 7.465 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001736/0.5297, allocations: 15.92 kB / 0.6767 GB, free: 7.449 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.362e-05/0.5298, allocations: 23.95 kB / 0.6767 GB, free: 7.426 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.315e-05/0.5298, allocations: 11.98 kB / 0.6767 GB, free: 7.414 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002242/0.53, allocations: 231.1 kB / 0.6769 GB, free: 7.191 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.53, allocations: 0 / 0.6769 GB, free: 7.191 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004781/0.5305, allocations: 104.1 kB / 0.677 GB, free: 7.09 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.0003011/0.5308, allocations: 183.3 kB / 0.6772 GB, free: 6.898 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009381/0.5318, allocations: 0.5141 MB / 0.6777 GB, free: 6.371 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.5318, allocations: 0 / 0.6777 GB, free: 6.371 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005729/0.5324, allocations: 378.3 kB / 0.6781 GB, free: 5.988 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006152/0.533, allocations: 93.58 kB / 0.6782 GB, free: 5.898 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001494/0.5345, allocations: 0.9795 MB / 0.6791 GB, free: 4.883 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003681/0.5349, allocations: 0.7873 MB / 0.6799 GB, free: 4.07 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001245/0.535, allocations: 39.41 kB / 0.6799 GB, free: 4.031 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.535, allocations: 0 / 0.6799 GB, free: 4.031 MB / 494.1 MB Notification: Performance of Templates: time 0.01177/0.5468, allocations: 7.23 MB / 0.687 GB, free: 12.82 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