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.001431/0.001431, allocations: 108 kB / 15.61 MB, free: 152 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.001645/0.001645, allocations: 196.2 kB / 16.53 MB, free: 6.699 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.379/1.379, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.652/0.652, allocations: 91.19 MB / 381.6 MB, free: 9.402 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002479/0.002479, allocations: 88.23 kB / 460.3 MB, free: 23.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1251, allocations: 67.68 MB / 0.5156 GB, free: 10.21 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.3754/0.5005, allocations: 144.5 MB / 0.6567 GB, free: 6.355 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004561/0.5051, allocations: 4.535 MB / 0.6611 GB, free: 2.68 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002279/0.5053, allocations: 20.25 kB / 0.6611 GB, free: 2.672 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005212/0.5059, allocations: 207.7 kB / 0.6613 GB, free: 2.5 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005277/0.5065, allocations: 278.6 kB / 0.6616 GB, free: 2.273 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008218/0.5073, allocations: 434.7 kB / 0.662 GB, free: 1.949 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005326/0.5078, allocations: 0.661 MB / 0.6627 GB, free: 1.566 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001814/0.508, allocations: 124.1 kB / 0.6628 GB, free: 1.5 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005218/0.5086, allocations: 351.6 kB / 0.6631 GB, free: 1.293 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003852/0.5089, allocations: 327 kB / 0.6634 GB, free: 1.105 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 4.951e-05/0.509, allocations: 32.78 kB / 0.6635 GB, free: 1.105 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007024/0.5097, allocations: 459.8 kB / 0.6639 GB, free: 0.8984 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 8.525e-05/0.5098, allocations: 100.5 kB / 0.664 GB, free: 0.8242 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000169/0.51, allocations: 204.8 kB / 0.6642 GB, free: 0.6875 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006336/0.5106, allocations: 0.6017 MB / 0.6648 GB, free: 312 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.806e-06/0.5106, allocations: 0 / 0.6648 GB, free: 312 kB / 478.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.5107, allocations: 2.188 kB / 0.6648 GB, free: 312 kB / 478.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.5107, allocations: 0 / 0.6648 GB, free: 312 kB / 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.001333/0.512, allocations: 0.7911 MB / 0.6656 GB, free: 15.65 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.978e-05/0.512, allocations: 9.781 kB / 0.6656 GB, free: 15.65 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.993e-05/0.5121, allocations: 46.72 kB / 0.6656 GB, free: 15.63 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004697/0.5126, allocations: 420.9 kB / 0.666 GB, free: 15.26 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/0.5126, allocations: 22.94 kB / 0.666 GB, free: 15.25 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.166e-05/0.5127, allocations: 25.97 kB / 0.6661 GB, free: 15.24 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005787/0.5133, allocations: 449.5 kB / 0.6665 GB, free: 14.94 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.5133, allocations: 0 / 0.6665 GB, free: 14.94 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.72e-05/0.5133, allocations: 11 kB / 0.6665 GB, free: 14.93 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.541e-05/0.5134, allocations: 13.28 kB / 0.6665 GB, free: 14.93 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006309/0.514, allocations: 485.4 kB / 0.667 GB, free: 14.69 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001836/0.5159, allocations: 1.434 MB / 0.6684 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003996/0.5163, allocations: 244.3 kB / 0.6686 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002852/0.5166, allocations: 216.4 kB / 0.6688 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002538/0.5168, allocations: 337 kB / 0.6691 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.723e-05/0.5169, allocations: 40.95 kB / 0.6692 GB, free: 12.81 MB / 494.1 MB Notification: Performance of pre-optimization done (n=32): time 1.483e-06/0.5169, allocations: 0 / 0.6692 GB, free: 12.81 MB / 494.1 MB Notification: Performance of matching and sorting (n=33): time 0.002325/0.5192, allocations: 1.524 MB / 0.6707 GB, free: 11.69 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.524e-05/0.5192, allocations: 53.62 kB / 0.6707 GB, free: 11.62 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003286/0.5196, allocations: 372.5 kB / 0.6711 GB, free: 11.4 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.965e-05/0.5196, allocations: 29.7 kB / 0.6711 GB, free: 11.36 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.5197, allocations: 185.5 kB / 0.6713 GB, free: 11.2 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.087e-05/0.5198, allocations: 121.5 kB / 0.6714 GB, free: 11.09 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.5199, allocations: 64.67 kB / 0.6715 GB, free: 11.04 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.5201, allocations: 358.9 kB / 0.6718 GB, free: 10.7 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002121/0.5203, allocations: 139.8 kB / 0.6719 GB, free: 10.62 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002085/0.5205, allocations: 148.6 kB / 0.6721 GB, free: 10.55 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004926/0.521, allocations: 346.5 kB / 0.6724 GB, free: 10.37 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.521, allocations: 0 / 0.6724 GB, free: 10.37 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.00078/0.5218, allocations: 0.5118 MB / 0.6729 GB, free: 10.08 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.5218, allocations: 7.188 kB / 0.6729 GB, free: 10.08 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.5218, allocations: 0 / 0.6729 GB, free: 10.08 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003325/0.5222, allocations: 115.6 kB / 0.673 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002467/0.5224, allocations: 59.16 kB / 0.6731 GB, free: 10 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002242/0.5247, allocations: 2.335 MB / 0.6754 GB, free: 7.934 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001778/0.5249, allocations: 17.12 kB / 0.6754 GB, free: 7.922 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.257e-05/0.5249, allocations: 12.98 kB / 0.6754 GB, free: 7.914 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.0001588/0.5251, allocations: 170.2 kB / 0.6755 GB, free: 7.762 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.677e-05/0.5252, allocations: 39.38 kB / 0.6756 GB, free: 7.742 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009923/0.5262, allocations: 0.6576 MB / 0.6762 GB, free: 7.277 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.5262, allocations: 2.781 kB / 0.6762 GB, free: 7.277 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.5262, allocations: 6.078 kB / 0.6762 GB, free: 7.273 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.5262, allocations: 96 / 0.6762 GB, free: 7.273 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004022/0.5266, allocations: 439.2 kB / 0.6767 GB, free: 6.898 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.5266, allocations: 7.938 kB / 0.6767 GB, free: 6.891 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001707/0.5268, allocations: 36.08 kB / 0.6767 GB, free: 6.875 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002913/0.5271, allocations: 123.4 kB / 0.6768 GB, free: 6.812 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.662e-05/0.5271, allocations: 12.98 kB / 0.6768 GB, free: 6.805 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002225/0.5294, allocations: 2.33 MB / 0.6791 GB, free: 4.738 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.5294, allocations: 0 / 0.6791 GB, free: 4.738 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009489/0.5303, allocations: 0.6518 MB / 0.6797 GB, free: 4.34 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.233e-05/0.5304, allocations: 108.3 kB / 0.6798 GB, free: 4.223 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.251e-05/0.5305, allocations: 6.562 kB / 0.6798 GB, free: 4.219 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001701/0.5307, allocations: 13.22 kB / 0.6799 GB, free: 4.211 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.442e-05/0.5307, allocations: 24.14 kB / 0.6799 GB, free: 4.195 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.103e-05/0.5308, allocations: 8.578 kB / 0.6799 GB, free: 4.191 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002899/0.531, allocations: 302.4 kB / 0.6802 GB, free: 4.008 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5311, allocations: 2.125 kB / 0.6802 GB, free: 4.008 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004602/0.5315, allocations: 113 kB / 0.6803 GB, free: 3.988 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.000261/0.5318, allocations: 181.9 kB / 0.6805 GB, free: 3.859 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0008605/0.5327, allocations: 0.5377 MB / 0.681 GB, free: 3.523 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.5327, allocations: 0 / 0.681 GB, free: 3.523 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005536/0.5332, allocations: 363.4 kB / 0.6813 GB, free: 3.273 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005558/0.5338, allocations: 109.4 kB / 0.6814 GB, free: 3.219 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001412/0.5352, allocations: 0.919 MB / 0.6823 GB, free: 2.594 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003641/0.5356, allocations: 0.8265 MB / 0.6831 GB, free: 1.828 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002137/0.5358, allocations: 96.47 kB / 0.6832 GB, free: 1.785 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.371e-05/0.5359, allocations: 37.97 kB / 0.6833 GB, free: 1.77 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.5359, allocations: 0 / 0.6833 GB, free: 1.77 MB / 494.1 MB Notification: Performance of Templates: time 0.01092/0.5468, allocations: 6.989 MB / 0.6901 GB, free: 12.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