Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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: "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestJunction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00189/0.00189, allocations: 108 kB / 15.6 MB, free: 132 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.001991/0.001991, allocations: 194.3 kB / 16.53 MB, free: 6.391 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.501/1.501, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7172/0.7172, allocations: 93.72 MB / 384.1 MB, free: 6.973 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00234/0.00234, allocations: 82.94 kB / 463.5 MB, free: 22.01 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1196, allocations: 68.26 MB / 0.5193 GB, free: 6.922 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.4007/0.5204, allocations: 144.5 MB / 0.6604 GB, free: 2.113 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.00544/0.5259, allocations: 4.578 MB / 0.6649 GB, free: 14.4 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004048/0.5263, allocations: 29.72 kB / 0.6649 GB, free: 14.39 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006428/0.5269, allocations: 197 kB / 0.6651 GB, free: 14.22 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007363/0.5277, allocations: 319.9 kB / 0.6654 GB, free: 13.96 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001112/0.5289, allocations: 425.9 kB / 0.6658 GB, free: 13.64 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007354/0.5296, allocations: 0.7433 MB / 0.6665 GB, free: 13.21 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002137/0.5298, allocations: 119.3 kB / 0.6667 GB, free: 13.14 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006543/0.5305, allocations: 378.8 kB / 0.667 GB, free: 12.92 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004377/0.5309, allocations: 329.3 kB / 0.6673 GB, free: 12.73 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.135e-05/0.531, allocations: 32.81 kB / 0.6674 GB, free: 12.73 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008518/0.5319, allocations: 460.1 kB / 0.6678 GB, free: 12.52 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001079/0.532, allocations: 100.6 kB / 0.6679 GB, free: 12.45 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002102/0.5322, allocations: 222.6 kB / 0.6681 GB, free: 12.3 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007985/0.533, allocations: 0.6171 MB / 0.6687 GB, free: 11.91 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.533, allocations: 0 / 0.6687 GB, free: 11.91 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.533, allocations: 0 / 0.6687 GB, free: 11.91 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.5331, allocations: 4 kB / 0.6687 GB, free: 11.9 MB / 494.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.001547/0.5346, allocations: 0.8212 MB / 0.6695 GB, free: 11.23 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.5347, allocations: 9.594 kB / 0.6695 GB, free: 11.23 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.258e-05/0.5347, allocations: 62.5 kB / 0.6696 GB, free: 11.16 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.767e-05/0.5348, allocations: 49.75 kB / 0.6696 GB, free: 11.14 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006005/0.5354, allocations: 442.9 kB / 0.6701 GB, free: 10.76 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.103e-05/0.5355, allocations: 18.81 kB / 0.6701 GB, free: 10.75 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.571e-05/0.5355, allocations: 27.03 kB / 0.6701 GB, free: 10.74 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006528/0.5362, allocations: 450.6 kB / 0.6705 GB, free: 10.45 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.229e-05/0.5362, allocations: 0.875 kB / 0.6705 GB, free: 10.45 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.085e-05/0.5363, allocations: 6.406 kB / 0.6705 GB, free: 10.44 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.399e-05/0.5363, allocations: 24.27 kB / 0.6706 GB, free: 10.43 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007128/0.537, allocations: 475.6 kB / 0.671 GB, free: 10.2 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002115/0.5391, allocations: 1.451 MB / 0.6724 GB, free: 8.996 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004624/0.5396, allocations: 251.7 kB / 0.6727 GB, free: 8.852 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003076/0.5399, allocations: 208.7 kB / 0.6729 GB, free: 8.746 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003361/0.5403, allocations: 340.5 kB / 0.6732 GB, free: 8.352 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.569e-05/0.5403, allocations: 37.41 kB / 0.6732 GB, free: 8.309 MB / 494.1 MB Notification: Performance of pre-optimization done (n=32): time 2.033e-06/0.5403, allocations: 0 / 0.6732 GB, free: 8.309 MB / 494.1 MB Notification: Performance of matching and sorting (n=33): time 0.002662/0.543, allocations: 1.524 MB / 0.6747 GB, free: 7.188 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.893e-05/0.5431, allocations: 56.16 kB / 0.6748 GB, free: 7.125 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003946/0.5435, allocations: 403.6 kB / 0.6752 GB, free: 6.883 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.576e-05/0.5435, allocations: 32.64 kB / 0.6752 GB, free: 6.848 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001482/0.5437, allocations: 196.8 kB / 0.6754 GB, free: 6.672 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.5438, allocations: 122.5 kB / 0.6755 GB, free: 6.562 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/0.5439, allocations: 64.64 kB / 0.6756 GB, free: 6.516 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.5441, allocations: 363 kB / 0.6759 GB, free: 6.164 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002282/0.5443, allocations: 145.7 kB / 0.676 GB, free: 6.09 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002312/0.5445, allocations: 154.2 kB / 0.6762 GB, free: 6.008 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005145/0.5451, allocations: 336.4 kB / 0.6765 GB, free: 5.836 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.5451, allocations: 0 / 0.6765 GB, free: 5.836 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008552/0.5459, allocations: 0.5202 MB / 0.677 GB, free: 5.539 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.546, allocations: 7.312 kB / 0.677 GB, free: 5.539 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/0.546, allocations: 2.188 kB / 0.677 GB, free: 5.539 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003621/0.5463, allocations: 119.6 kB / 0.6771 GB, free: 5.48 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002625/0.5466, allocations: 59.06 kB / 0.6772 GB, free: 5.457 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002619/0.5492, allocations: 2.321 MB / 0.6795 GB, free: 3.402 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002148/0.5495, allocations: 10.78 kB / 0.6795 GB, free: 3.395 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.374e-05/0.5495, allocations: 17.41 kB / 0.6795 GB, free: 3.387 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.0002109/0.5497, allocations: 168.1 kB / 0.6797 GB, free: 3.238 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.927e-05/0.5498, allocations: 50.41 kB / 0.6797 GB, free: 3.211 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001066/0.5509, allocations: 0.664 MB / 0.6803 GB, free: 2.742 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.271e-06/0.5509, allocations: 2.828 kB / 0.6804 GB, free: 2.742 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.5509, allocations: 3.938 kB / 0.6804 GB, free: 2.738 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.5509, allocations: 3.984 kB / 0.6804 GB, free: 2.734 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004781/0.5514, allocations: 441.2 kB / 0.6808 GB, free: 2.359 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.5514, allocations: 6.562 kB / 0.6808 GB, free: 2.355 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001809/0.5516, allocations: 33.42 kB / 0.6808 GB, free: 2.34 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00033/0.552, allocations: 129.6 kB / 0.6809 GB, free: 2.273 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.192e-05/0.552, allocations: 10.86 kB / 0.681 GB, free: 2.266 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002736/0.5548, allocations: 2.339 MB / 0.6832 GB, free: 196 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.5548, allocations: 0 / 0.6832 GB, free: 196 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001057/0.5558, allocations: 0.6479 MB / 0.6839 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001055/0.556, allocations: 114.8 kB / 0.684 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.84e-05/0.556, allocations: 6.75 kB / 0.684 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001825/0.5562, allocations: 6.25 kB / 0.684 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.393e-05/0.5563, allocations: 26.05 kB / 0.684 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-05/0.5563, allocations: 12.7 kB / 0.684 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003361/0.5566, allocations: 315.4 kB / 0.6843 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5567, allocations: 0 / 0.6843 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0005084/0.5572, allocations: 113.4 kB / 0.6844 GB, free: 15.43 MB / 0.4981 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.001481/0.5587, allocations: 1.268 MB / 0.6857 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009898/0.5597, allocations: 0.5359 MB / 0.6862 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.5597, allocations: 0 / 0.6862 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006065/0.5603, allocations: 365.6 kB / 0.6865 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006768/0.561, allocations: 114.5 kB / 0.6867 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006042/0.567, allocations: 4.202 MB / 0.6908 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005312/0.5676, allocations: 0.8308 MB / 0.6916 GB, free: 9.578 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003034/0.5679, allocations: 100.1 kB / 0.6917 GB, free: 9.48 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002297/0.5682, allocations: 155.4 kB / 0.6918 GB, free: 9.328 MB / 0.4981 GB Notification: Performance of SimCode: time 6.11e-07/0.5682, allocations: 0 / 0.6918 GB, free: 9.328 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04405/0.6122, allocations: 11.77 MB / 0.7033 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.13/10.74, allocations: 9.766 kB / 0.7033 GB, free: 13.7 MB / 0.5137 GB (rm -f ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction_res.csv --start-time 0 --stop-time 1 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ThermofluidStream_dev_ThermofluidStream_Topology_Tests_TestJunction.fmu > ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.pipe 2>&1) diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunction_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches