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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001862/0.001862, allocations: 105.7 kB / 16.45 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001397/0.001397, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.382/1.382, allocations: 230.6 MB / 252.8 MB, free: 8.973 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.7233/0.7233, allocations: 94.55 MB / 403.4 MB, free: 10.17 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002366/0.002366, allocations: 82.31 kB / 0.5499 GB, free: 38.66 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1172, allocations: 73.03 MB / 0.6212 GB, free: 1.867 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.4849/0.6021, allocations: 145 MB / 0.7628 GB, free: 2.312 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.004069/0.6062, allocations: 4.603 MB / 0.7673 GB, free: 2.227 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004653/0.6066, allocations: 38.06 kB / 0.7674 GB, free: 2.227 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0006239/0.6073, allocations: 211.3 kB / 0.7676 GB, free: 2.215 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.000746/0.608, allocations: 322.6 kB / 0.7679 GB, free: 2.203 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001018/0.609, allocations: 433.4 kB / 0.7683 GB, free: 2.184 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0008423/0.6099, allocations: 0.7397 MB / 0.769 GB, free: 2.184 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000223/0.6101, allocations: 86.72 kB / 0.7691 GB, free: 2.16 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008493/0.6109, allocations: 396.2 kB / 0.7695 GB, free: 2.16 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005432/0.6115, allocations: 338.9 kB / 0.7698 GB, free: 2.16 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.982e-05/0.6116, allocations: 31.38 kB / 0.7698 GB, free: 2.16 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001042/0.6126, allocations: 475.6 kB / 0.7703 GB, free: 2.148 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001286/0.6127, allocations: 108.5 kB / 0.7704 GB, free: 2.145 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003108/0.613, allocations: 211.3 kB / 0.7706 GB, free: 2.145 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001065/0.6141, allocations: 0.6519 MB / 0.7712 GB, free: 2.098 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.6141, allocations: 1.203 kB / 0.7712 GB, free: 2.098 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.773e-06/0.6141, allocations: 0 / 0.7712 GB, free: 2.098 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.11e-05/0.6141, allocations: 0 / 0.7712 GB, free: 2.098 MB / 0.5762 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.001481/0.6156, allocations: 0.8305 MB / 0.772 GB, free: 1.562 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.6156, allocations: 14.19 kB / 0.772 GB, free: 1.559 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.47e-05/0.6157, allocations: 62.19 kB / 0.7721 GB, free: 1.52 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.678e-05/0.6158, allocations: 55.81 kB / 0.7722 GB, free: 1.488 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007295/0.6165, allocations: 0.4895 MB / 0.7726 GB, free: 17.23 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2e-05/0.6166, allocations: 19.44 kB / 0.7726 GB, free: 17.23 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.507e-05/0.6166, allocations: 23.47 kB / 0.7727 GB, free: 17.23 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006007/0.6172, allocations: 440.4 kB / 0.7731 GB, free: 17.15 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.6172, allocations: 0 / 0.7731 GB, free: 17.15 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.215e-05/0.6173, allocations: 16.34 kB / 0.7731 GB, free: 17.15 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.286e-05/0.6173, allocations: 21.2 kB / 0.7731 GB, free: 17.15 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007567/0.618, allocations: 482.2 kB / 0.7736 GB, free: 17.14 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002007/0.6201, allocations: 1.44 MB / 0.775 GB, free: 16.45 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003902/0.6204, allocations: 228.1 kB / 0.7752 GB, free: 16.42 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002543/0.6207, allocations: 191.2 kB / 0.7754 GB, free: 16.41 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003089/0.621, allocations: 339.1 kB / 0.7757 GB, free: 16.04 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.377e-05/0.621, allocations: 33.31 kB / 0.7757 GB, free: 16 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=32): time 2.004e-06/0.621, allocations: 0 / 0.7757 GB, free: 16 MB / 0.5919 GB Notification: Performance of matching and sorting (n=33): time 0.002538/0.6236, allocations: 1.533 MB / 0.7772 GB, free: 15.34 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.865e-05/0.6236, allocations: 54.56 kB / 0.7773 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000389/0.624, allocations: 400.2 kB / 0.7777 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.768e-05/0.624, allocations: 30.45 kB / 0.7777 GB, free: 15.12 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.6242, allocations: 204.7 kB / 0.7779 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 8.159e-05/0.6242, allocations: 123.6 kB / 0.778 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.998e-05/0.6243, allocations: 65.48 kB / 0.7781 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001585/0.6245, allocations: 366.1 kB / 0.7784 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002094/0.6247, allocations: 144 kB / 0.7786 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002079/0.6249, allocations: 143.5 kB / 0.7787 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004793/0.6254, allocations: 341.8 kB / 0.779 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.6254, allocations: 0 / 0.779 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008274/0.6262, allocations: 0.5148 MB / 0.7795 GB, free: 14.53 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.6262, allocations: 6.875 kB / 0.7795 GB, free: 14.53 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.6262, allocations: 2.422 kB / 0.7795 GB, free: 14.53 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003431/0.6266, allocations: 119.8 kB / 0.7797 GB, free: 14.52 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002497/0.6268, allocations: 58.91 kB / 0.7797 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002311/0.6292, allocations: 2.335 MB / 0.782 GB, free: 13 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002635/0.6294, allocations: 13.62 kB / 0.782 GB, free: 12.99 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.146e-05/0.6294, allocations: 13.84 kB / 0.782 GB, free: 12.99 MB / 0.5919 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.0002099/0.6297, allocations: 164.7 kB / 0.7822 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.732e-05/0.6297, allocations: 49.39 kB / 0.7822 GB, free: 12.85 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009075/0.6307, allocations: 0.6555 MB / 0.7829 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.267e-06/0.6307, allocations: 2.438 kB / 0.7829 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.6307, allocations: 4.016 kB / 0.7829 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.6307, allocations: 3.188 kB / 0.7829 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004268/0.6311, allocations: 442.1 kB / 0.7833 GB, free: 12.51 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.6311, allocations: 3.938 kB / 0.7833 GB, free: 12.51 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001753/0.6313, allocations: 29.61 kB / 0.7833 GB, free: 12.51 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002999/0.6316, allocations: 129.7 kB / 0.7835 GB, free: 12.49 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.745e-05/0.6316, allocations: 12.27 kB / 0.7835 GB, free: 12.49 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00231/0.6339, allocations: 2.342 MB / 0.7858 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.6339, allocations: 0 / 0.7858 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009604/0.6349, allocations: 0.6425 MB / 0.7864 GB, free: 10.85 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001322/0.635, allocations: 122.4 kB / 0.7865 GB, free: 10.73 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.568e-05/0.6351, allocations: 3.312 kB / 0.7865 GB, free: 10.73 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001791/0.6352, allocations: 14 kB / 0.7865 GB, free: 10.72 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.055e-05/0.6353, allocations: 29.67 kB / 0.7865 GB, free: 10.72 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-05/0.6353, allocations: 10.88 kB / 0.7866 GB, free: 10.72 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003133/0.6356, allocations: 325.3 kB / 0.7869 GB, free: 10.62 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.6356, allocations: 0 / 0.7869 GB, free: 10.62 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00051/0.6361, allocations: 111 kB / 0.787 GB, free: 10.62 MB / 0.5919 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.001402/0.6375, allocations: 1.256 MB / 0.7882 GB, free: 9.969 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0009117/0.6385, allocations: 0.5077 MB / 0.7887 GB, free: 9.824 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.6385, allocations: 0 / 0.7887 GB, free: 9.824 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005729/0.639, allocations: 352.7 kB / 0.789 GB, free: 9.695 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006207/0.6397, allocations: 111.9 kB / 0.7891 GB, free: 9.68 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005275/0.6449, allocations: 4.123 MB / 0.7932 GB, free: 8.117 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000445/0.6454, allocations: 0.8303 MB / 0.794 GB, free: 7.414 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0002822/0.6457, allocations: 96.58 kB / 0.7941 GB, free: 7.395 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001843/0.6458, allocations: 154.2 kB / 0.7942 GB, free: 7.387 MB / 0.5919 GB Notification: Performance of SimCode: time 7.22e-07/0.6458, allocations: 0 / 0.7942 GB, free: 7.387 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04203/0.6879, allocations: 12.01 MB / 0.8059 GB, free: 4.086 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.41, allocations: 11.44 kB / 0.8059 GB, free: 4.078 MB / 0.5919 GB " [Timeout remaining time 649] (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) [Timeout 1260.0] 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) [Timeout 660] "Error: Could not read variable Time in file ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction_res.csv. Warning: Get data of variable Time from file ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction_res.csv failed! Error: Could not read variable junctionN.outlet.m_flow in file ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction_res.csv. Warning: Get data of variable junctionN.outlet.m_flow from file ThermofluidStream_ThermofluidStream.Topology.Tests.TestJunction_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.886976289999438]