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: "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_ThermofluidStream_Topology_Tests_TestJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Topology.Tests.TestJunction,fileNamePrefix="ThermofluidStream_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.001154/0.001154, 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.00124/0.00124, allocations: 195.7 kB / 16.53 MB, free: 6.664 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.368/1.368, 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.6839/0.6839, allocations: 91.19 MB / 381.6 MB, free: 9.445 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 81.47 kB / 460.4 MB, free: 23.06 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1222, allocations: 67.7 MB / 0.5157 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.42/0.5422, allocations: 144.5 MB / 0.6568 GB, free: 6.48 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.00546/0.5477, allocations: 4.54 MB / 0.6612 GB, free: 2.797 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005697/0.5483, allocations: 24.59 kB / 0.6613 GB, free: 2.785 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006858/0.549, allocations: 199.3 kB / 0.6614 GB, free: 2.621 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006701/0.5497, allocations: 283.5 kB / 0.6617 GB, free: 2.391 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001033/0.5508, allocations: 433.6 kB / 0.6621 GB, free: 2.066 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006784/0.5515, allocations: 0.6598 MB / 0.6628 GB, free: 1.684 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002334/0.5517, allocations: 123.9 kB / 0.6629 GB, free: 1.621 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006936/0.5524, allocations: 348.7 kB / 0.6632 GB, free: 1.414 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004414/0.5529, allocations: 333.3 kB / 0.6635 GB, free: 1.223 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 5.455e-05/0.5529, allocations: 32.5 kB / 0.6636 GB, free: 1.223 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008915/0.5538, allocations: 455.8 kB / 0.664 GB, free: 1.02 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001074/0.554, allocations: 100.5 kB / 0.6641 GB, free: 0.9453 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000193/0.5542, allocations: 208.1 kB / 0.6643 GB, free: 0.8047 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007651/0.5549, allocations: 0.5983 MB / 0.6649 GB, free: 436 kB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.83e-06/0.555, allocations: 0 / 0.6649 GB, free: 436 kB / 478.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.555, allocations: 0 / 0.6649 GB, free: 436 kB / 478.1 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.555, allocations: 3.984 kB / 0.6649 GB, free: 432 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.001411/0.5564, allocations: 0.7929 MB / 0.6657 GB, free: 15.77 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.5565, allocations: 9.875 kB / 0.6657 GB, free: 15.77 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.855e-05/0.5565, allocations: 62.69 kB / 0.6657 GB, free: 15.71 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.42e-05/0.5566, allocations: 46.81 kB / 0.6658 GB, free: 15.68 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004945/0.5571, allocations: 417.3 kB / 0.6662 GB, free: 15.32 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/0.5572, allocations: 21.16 kB / 0.6662 GB, free: 15.31 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.173e-05/0.5572, allocations: 31.61 kB / 0.6662 GB, free: 15.29 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005901/0.5578, allocations: 437.7 kB / 0.6666 GB, free: 15.01 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.5578, allocations: 3.938 kB / 0.6667 GB, free: 15 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.143e-05/0.5579, allocations: 10.78 kB / 0.6667 GB, free: 15 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.125e-05/0.5579, allocations: 20.73 kB / 0.6667 GB, free: 14.99 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006443/0.5586, allocations: 481.1 kB / 0.6671 GB, free: 14.75 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001917/0.5605, allocations: 1.433 MB / 0.6685 GB, free: 13.56 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004296/0.5609, allocations: 248.1 kB / 0.6688 GB, free: 13.42 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002882/0.5612, allocations: 211.6 kB / 0.669 GB, free: 13.31 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002801/0.5615, allocations: 333.1 kB / 0.6693 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.5616, allocations: 45.45 kB / 0.6693 GB, free: 12.88 MB / 494.1 MB Notification: Performance of pre-optimization done (n=32): time 1.994e-06/0.5616, allocations: 4 kB / 0.6693 GB, free: 12.87 MB / 494.1 MB Notification: Performance of matching and sorting (n=33): time 0.002519/0.5641, allocations: 1.517 MB / 0.6708 GB, free: 11.75 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.383e-05/0.5641, allocations: 54.25 kB / 0.6709 GB, free: 11.69 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003465/0.5645, allocations: 375.5 kB / 0.6712 GB, free: 11.46 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.883e-05/0.5645, allocations: 33.7 kB / 0.6713 GB, free: 11.42 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.5647, allocations: 185.9 kB / 0.6714 GB, free: 11.25 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.5648, allocations: 125.8 kB / 0.6716 GB, free: 11.14 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001114/0.5649, allocations: 64.23 kB / 0.6716 GB, free: 11.1 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.565, allocations: 356.8 kB / 0.672 GB, free: 10.75 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002222/0.5653, allocations: 146.4 kB / 0.6721 GB, free: 10.68 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002252/0.5655, allocations: 150.2 kB / 0.6722 GB, free: 10.6 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004936/0.566, allocations: 332.1 kB / 0.6726 GB, free: 10.43 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.566, allocations: 4 kB / 0.6726 GB, free: 10.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008326/0.5668, allocations: 0.5157 MB / 0.6731 GB, free: 10.13 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.5669, allocations: 5.688 kB / 0.6731 GB, free: 10.13 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.391e-06/0.5669, allocations: 0.875 kB / 0.6731 GB, free: 10.13 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003692/0.5672, allocations: 123.2 kB / 0.6732 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002587/0.5675, allocations: 61.45 kB / 0.6733 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002357/0.5699, allocations: 2.325 MB / 0.6755 GB, free: 7.992 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001981/0.5701, allocations: 11.19 kB / 0.6755 GB, free: 7.984 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.043e-05/0.5701, allocations: 11.69 kB / 0.6755 GB, free: 7.98 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.0001943/0.5703, allocations: 175.8 kB / 0.6757 GB, free: 7.824 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.904e-05/0.5704, allocations: 47.56 kB / 0.6758 GB, free: 7.797 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009846/0.5714, allocations: 0.6483 MB / 0.6764 GB, free: 7.34 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.5714, allocations: 1.938 kB / 0.6764 GB, free: 7.34 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.5714, allocations: 2.531 kB / 0.6764 GB, free: 7.34 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.758e-06/0.5714, allocations: 3.938 kB / 0.6764 GB, free: 7.336 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004034/0.5719, allocations: 440.3 kB / 0.6768 GB, free: 6.957 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.5719, allocations: 3.938 kB / 0.6768 GB, free: 6.953 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001753/0.572, allocations: 36.77 kB / 0.6769 GB, free: 6.938 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003081/0.5724, allocations: 122.2 kB / 0.677 GB, free: 6.879 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.84e-05/0.5724, allocations: 10.08 kB / 0.677 GB, free: 6.871 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002389/0.5748, allocations: 2.341 MB / 0.6793 GB, free: 4.793 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.5748, allocations: 0 / 0.6793 GB, free: 4.793 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/0.5758, allocations: 0.6488 MB / 0.6799 GB, free: 4.398 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001087/0.576, allocations: 113.5 kB / 0.68 GB, free: 4.281 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.798e-05/0.576, allocations: 6.469 kB / 0.68 GB, free: 4.277 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001768/0.5762, allocations: 5.938 kB / 0.68 GB, free: 4.273 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.035e-05/0.5763, allocations: 26.14 kB / 0.6801 GB, free: 4.258 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.095e-05/0.5763, allocations: 9.547 kB / 0.6801 GB, free: 4.254 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002961/0.5766, allocations: 301.7 kB / 0.6803 GB, free: 4.07 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5766, allocations: 4 kB / 0.6804 GB, free: 4.066 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004707/0.5771, allocations: 109.1 kB / 0.6805 GB, free: 4.051 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.001372/0.5785, allocations: 1.265 MB / 0.6817 GB, free: 3.09 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009274/0.5794, allocations: 0.54 MB / 0.6822 GB, free: 2.75 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.5794, allocations: 4 kB / 0.6822 GB, free: 2.746 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005735/0.58, allocations: 362.5 kB / 0.6826 GB, free: 2.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005942/0.5806, allocations: 107.4 kB / 0.6827 GB, free: 2.445 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005222/0.5858, allocations: 4.061 MB / 0.6866 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004214/0.5863, allocations: 0.8161 MB / 0.6874 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002805/0.5866, allocations: 95.39 kB / 0.6875 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002159/0.5868, allocations: 143.5 kB / 0.6877 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of SimCode: time 2.124e-06/0.5868, allocations: 0 / 0.6877 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0342/0.621, allocations: 11.45 MB / 0.6988 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.457/10.08, allocations: 6.656 kB / 0.6988 GB, free: 3.477 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file ThermofluidStream_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_ThermofluidStream_Topology_Tests_TestJunction.fmu > ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction.pipe 2>&1) diffSimulationResults("ThermofluidStream_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_ThermofluidStream.Topology.Tests.TestJunction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches