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.001269/0.001269, allocations: 103.4 kB / 16.27 MB, free: 5.965 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.001252/0.001252, allocations: 190 kB / 17.2 MB, free: 5.59 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.247/1.247, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.6315/0.6315, allocations: 91.18 MB / 382.2 MB, free: 7.539 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001679/0.001679, allocations: 83.88 kB / 461 MB, free: 9.035 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1081, allocations: 67.68 MB / 0.5163 GB, free: 5.277 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.3107/0.4188, allocations: 144.5 MB / 0.6573 GB, free: 3.66 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.004637/0.4235, allocations: 4.537 MB / 0.6618 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003408/0.4239, allocations: 23.88 kB / 0.6618 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0006479/0.4245, allocations: 202.7 kB / 0.662 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0007368/0.4253, allocations: 286.3 kB / 0.6623 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009805/0.4263, allocations: 422.4 kB / 0.6627 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0006863/0.427, allocations: 0.6711 MB / 0.6633 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002199/0.4273, allocations: 114.9 kB / 0.6634 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006703/0.428, allocations: 354.5 kB / 0.6638 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004553/0.4284, allocations: 330.8 kB / 0.6641 GB, free: 12.76 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.53e-05/0.4285, allocations: 28 kB / 0.6641 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008252/0.4293, allocations: 455.1 kB / 0.6646 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.4295, allocations: 107.6 kB / 0.6647 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002109/0.4297, allocations: 206.9 kB / 0.6649 GB, free: 11.98 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0008293/0.4305, allocations: 0.5959 MB / 0.6654 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.4305, allocations: 3.984 kB / 0.6654 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.152e-06/0.4305, allocations: 0 / 0.6654 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.253e-05/0.4305, allocations: 0 / 0.6654 GB, free: 11.38 MB / 0.5137 GB 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.001404/0.432, allocations: 0.7946 MB / 0.6662 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.432, allocations: 12.88 kB / 0.6662 GB, free: 10.53 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.4321, allocations: 44.38 kB / 0.6663 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000498/0.4326, allocations: 414 kB / 0.6667 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/0.4326, allocations: 24.94 kB / 0.6667 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.703e-05/0.4327, allocations: 32.34 kB / 0.6667 GB, free: 9.984 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005824/0.4333, allocations: 441.5 kB / 0.6671 GB, free: 9.531 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.4333, allocations: 0 / 0.6671 GB, free: 9.531 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.117e-05/0.4333, allocations: 12 kB / 0.6671 GB, free: 9.52 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.932e-05/0.4334, allocations: 13.92 kB / 0.6672 GB, free: 9.508 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006494/0.434, allocations: 486.5 kB / 0.6676 GB, free: 9.035 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001864/0.4359, allocations: 1.444 MB / 0.669 GB, free: 7.508 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003972/0.4363, allocations: 238.5 kB / 0.6693 GB, free: 7.266 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002836/0.4366, allocations: 213.3 kB / 0.6695 GB, free: 7.055 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002379/0.4369, allocations: 332.4 kB / 0.6698 GB, free: 6.656 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.4369, allocations: 47.05 kB / 0.6698 GB, free: 6.602 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=32): time 2.014e-06/0.4369, allocations: 1.781 kB / 0.6698 GB, free: 6.602 MB / 0.5137 GB Notification: Performance of matching and sorting (n=33): time 0.002351/0.4393, allocations: 1.519 MB / 0.6713 GB, free: 4.969 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.327e-05/0.4393, allocations: 59.39 kB / 0.6714 GB, free: 4.898 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000336/0.4397, allocations: 374 kB / 0.6717 GB, free: 4.527 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.852e-05/0.4397, allocations: 29.7 kB / 0.6718 GB, free: 4.492 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.4398, allocations: 184.7 kB / 0.6719 GB, free: 4.309 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.4399, allocations: 126.3 kB / 0.6721 GB, free: 4.184 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.936e-05/0.44, allocations: 61.69 kB / 0.6721 GB, free: 4.117 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000113/0.4401, allocations: 358.8 kB / 0.6725 GB, free: 3.758 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002167/0.4404, allocations: 139.9 kB / 0.6726 GB, free: 3.621 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002161/0.4406, allocations: 148.4 kB / 0.6727 GB, free: 3.477 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004745/0.4411, allocations: 346 kB / 0.6731 GB, free: 3.137 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4411, allocations: 0 / 0.6731 GB, free: 3.137 MB / 0.5137 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007951/0.4419, allocations: 0.5208 MB / 0.6736 GB, free: 2.605 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.4419, allocations: 4 kB / 0.6736 GB, free: 2.602 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-06/0.4419, allocations: 3.938 kB / 0.6736 GB, free: 2.598 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003347/0.4422, allocations: 113.5 kB / 0.6737 GB, free: 2.484 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002563/0.4425, allocations: 59.88 kB / 0.6737 GB, free: 2.426 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002233/0.4448, allocations: 2.33 MB / 0.676 GB, free: 15.96 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002034/0.445, allocations: 19.97 kB / 0.676 GB, free: 15.94 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.942e-05/0.445, allocations: 11.98 kB / 0.676 GB, free: 15.93 MB / 0.5294 GB 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.0001808/0.4452, allocations: 167.6 kB / 0.6762 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.893e-05/0.4453, allocations: 39.64 kB / 0.6762 GB, free: 15.71 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009177/0.4462, allocations: 0.6591 MB / 0.6769 GB, free: 15.03 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.4462, allocations: 0 / 0.6769 GB, free: 15.03 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.4462, allocations: 8 kB / 0.6769 GB, free: 15.02 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.4462, allocations: 3.984 kB / 0.6769 GB, free: 15.02 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003805/0.4466, allocations: 435 kB / 0.6773 GB, free: 14.55 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.4466, allocations: 0 / 0.6773 GB, free: 14.55 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001715/0.4468, allocations: 36.47 kB / 0.6773 GB, free: 14.51 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002996/0.4471, allocations: 127.7 kB / 0.6775 GB, free: 14.39 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.747e-05/0.4472, allocations: 15.97 kB / 0.6775 GB, free: 14.37 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002137/0.4493, allocations: 2.334 MB / 0.6798 GB, free: 11.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.4493, allocations: 0 / 0.6798 GB, free: 11.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009032/0.4502, allocations: 0.6477 MB / 0.6804 GB, free: 11.23 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 6.939e-05/0.4503, allocations: 105.2 kB / 0.6805 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.243e-05/0.4504, allocations: 8 kB / 0.6805 GB, free: 11.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001676/0.4505, allocations: 11.98 kB / 0.6805 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.039e-05/0.4506, allocations: 22.03 kB / 0.6805 GB, free: 11.07 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.27e-05/0.4506, allocations: 13.16 kB / 0.6805 GB, free: 11.06 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0002691/0.4509, allocations: 299.1 kB / 0.6808 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4509, allocations: 0 / 0.6808 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.000461/0.4514, allocations: 112 kB / 0.6809 GB, free: 10.66 MB / 0.5294 GB 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.0002356/0.4516, allocations: 182.6 kB / 0.6811 GB, free: 10.48 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.000873/0.4525, allocations: 0.5384 MB / 0.6816 GB, free: 9.93 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4525, allocations: 0 / 0.6816 GB, free: 9.93 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0005451/0.4531, allocations: 370.3 kB / 0.682 GB, free: 9.555 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005537/0.4536, allocations: 102.2 kB / 0.6821 GB, free: 9.469 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001435/0.4551, allocations: 0.9522 MB / 0.683 GB, free: 8.496 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002999/0.4554, allocations: 0.8214 MB / 0.6838 GB, free: 7.652 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001119/0.4555, allocations: 51.39 kB / 0.6839 GB, free: 7.602 MB / 0.5294 GB Notification: Performance of SimCode: time 2.9e-07/0.4555, allocations: 0 / 0.6839 GB, free: 7.602 MB / 0.5294 GB Notification: Performance of Templates: time 0.01023/0.4657, allocations: 8.563 MB / 0.6922 GB, free: 15.16 MB / 0.545 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