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.001892/0.001892, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002264/0.002264, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.482/1.482, allocations: 230.6 MB / 256 MB, free: 7.98 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.7651/0.7651, allocations: 94.57 MB / 407 MB, free: 9.164 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.002484/0.002484, allocations: 77.89 kB / 0.5549 GB, free: 38.56 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.1371, allocations: 73.07 MB / 0.6263 GB, free: 492 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.4662/0.6033, allocations: 145.2 MB / 0.7681 GB, free: 2.152 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.004613/0.6079, allocations: 4.645 MB / 0.7726 GB, free: 2.055 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004288/0.6083, allocations: 39.89 kB / 0.7726 GB, free: 2.055 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0006104/0.6089, allocations: 203.7 kB / 0.7728 GB, free: 2.047 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0008655/0.6098, allocations: 323.8 kB / 0.7731 GB, free: 2.035 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001282/0.6111, allocations: 454.7 kB / 0.7736 GB, free: 2.008 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001066/0.6121, allocations: 0.7506 MB / 0.7743 GB, free: 2.008 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002118/0.6124, allocations: 73.64 kB / 0.7744 GB, free: 1.992 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009001/0.6133, allocations: 406.1 kB / 0.7748 GB, free: 1.988 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005736/0.6138, allocations: 343.6 kB / 0.7751 GB, free: 1.988 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.797e-05/0.6139, allocations: 31.25 kB / 0.7751 GB, free: 1.988 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001101/0.615, allocations: 473.2 kB / 0.7756 GB, free: 1.98 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.6151, allocations: 113.1 kB / 0.7757 GB, free: 1.977 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002592/0.6154, allocations: 206.8 kB / 0.7759 GB, free: 1.977 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0009454/0.6163, allocations: 0.6537 MB / 0.7765 GB, free: 1.93 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.6163, allocations: 1.203 kB / 0.7765 GB, free: 1.93 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.402e-06/0.6163, allocations: 0 / 0.7765 GB, free: 1.93 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.649e-05/0.6164, allocations: 0 / 0.7765 GB, free: 1.93 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.001735/0.6181, allocations: 0.7529 MB / 0.7773 GB, free: 17.49 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.6181, allocations: 11.84 kB / 0.7773 GB, free: 17.49 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.895e-05/0.6182, allocations: 59.47 kB / 0.7773 GB, free: 17.45 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.785e-05/0.6183, allocations: 56.38 kB / 0.7774 GB, free: 17.42 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007587/0.6191, allocations: 424.2 kB / 0.7778 GB, free: 17.21 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.781e-05/0.6191, allocations: 18.69 kB / 0.7778 GB, free: 17.21 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.669e-05/0.6192, allocations: 23.38 kB / 0.7778 GB, free: 17.21 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00071/0.6199, allocations: 454.1 kB / 0.7783 GB, free: 17.14 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.6199, allocations: 0 / 0.7783 GB, free: 17.14 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.305e-05/0.6199, allocations: 9.406 kB / 0.7783 GB, free: 17.14 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.682e-05/0.62, allocations: 22.27 kB / 0.7783 GB, free: 17.13 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008881/0.6208, allocations: 489.5 kB / 0.7788 GB, free: 17.12 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001984/0.6228, allocations: 1.416 MB / 0.7801 GB, free: 16.45 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000423/0.6233, allocations: 224.6 kB / 0.7804 GB, free: 16.43 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000282/0.6235, allocations: 197 kB / 0.7805 GB, free: 16.41 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001544/0.6237, allocations: 31.48 kB / 0.7806 GB, free: 16.41 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.151e-05/0.6237, allocations: 42.41 kB / 0.7806 GB, free: 16.37 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=32): time 1.793e-06/0.6237, allocations: 0 / 0.7806 GB, free: 16.37 MB / 0.5919 GB Notification: Performance of matching and sorting (n=33): time 0.002348/0.6261, allocations: 1.234 MB / 0.7818 GB, free: 16.08 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.634e-05/0.6261, allocations: 55.53 kB / 0.7819 GB, free: 16.02 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003596/0.6265, allocations: 395.1 kB / 0.7822 GB, free: 15.91 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.695e-05/0.6265, allocations: 38.08 kB / 0.7823 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.6266, allocations: 202 kB / 0.7825 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 8.143e-05/0.6267, allocations: 125 kB / 0.7826 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.494e-05/0.6268, allocations: 68.33 kB / 0.7827 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001844/0.627, allocations: 361.2 kB / 0.783 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002186/0.6272, allocations: 141.6 kB / 0.7831 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002125/0.6274, allocations: 148.3 kB / 0.7833 GB, free: 15.37 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004638/0.6279, allocations: 339 kB / 0.7836 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.6279, allocations: 5.031 kB / 0.7836 GB, free: 15.35 MB / 0.5919 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000773/0.6287, allocations: 0.5111 MB / 0.7841 GB, free: 15.28 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.6287, allocations: 5.531 kB / 0.7841 GB, free: 15.28 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.221e-06/0.6287, allocations: 0 / 0.7841 GB, free: 15.28 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000348/0.629, allocations: 121.2 kB / 0.7842 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002538/0.6293, allocations: 56.09 kB / 0.7843 GB, free: 15.26 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002336/0.6316, allocations: 2.229 MB / 0.7865 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002125/0.6318, allocations: 9.188 kB / 0.7865 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.914e-05/0.6319, allocations: 13.47 kB / 0.7865 GB, free: 13.88 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.0001918/0.6321, allocations: 162.2 kB / 0.7866 GB, free: 13.76 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.549e-05/0.6321, allocations: 53.61 kB / 0.7867 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008727/0.633, allocations: 0.657 MB / 0.7873 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.633, allocations: 0 / 0.7873 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.633, allocations: 3.656 kB / 0.7873 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.633, allocations: 4 kB / 0.7873 GB, free: 13.58 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003868/0.6334, allocations: 415.5 kB / 0.7877 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.6334, allocations: 3.938 kB / 0.7877 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001771/0.6336, allocations: 31.42 kB / 0.7878 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002994/0.6339, allocations: 133.7 kB / 0.7879 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.816e-05/0.6339, allocations: 11.95 kB / 0.7879 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002403/0.6363, allocations: 2.231 MB / 0.7901 GB, free: 12.02 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.6363, allocations: 2.656 kB / 0.7901 GB, free: 12.02 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001448/0.6378, allocations: 0.6417 MB / 0.7907 GB, free: 11.89 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.6379, allocations: 42.02 kB / 0.7908 GB, free: 11.87 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.301e-05/0.638, allocations: 10.36 kB / 0.7908 GB, free: 11.87 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002578/0.6382, allocations: 7.281 kB / 0.7908 GB, free: 11.87 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.557e-05/0.6383, allocations: 24.39 kB / 0.7908 GB, free: 11.87 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.18e-05/0.6383, allocations: 10.83 kB / 0.7908 GB, free: 11.87 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004631/0.6388, allocations: 318.4 kB / 0.7911 GB, free: 11.78 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6388, allocations: 0 / 0.7911 GB, free: 11.78 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0008027/0.6396, allocations: 118.9 kB / 0.7912 GB, free: 11.77 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.002039/0.6416, allocations: 1.271 MB / 0.7925 GB, free: 11.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001274/0.6429, allocations: 0.4999 MB / 0.7929 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.6429, allocations: 0 / 0.7929 GB, free: 10.96 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008067/0.6437, allocations: 352.3 kB / 0.7933 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009948/0.6447, allocations: 112.8 kB / 0.7934 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007361/0.6521, allocations: 4.133 MB / 0.7974 GB, free: 9.242 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006115/0.6527, allocations: 0.8284 MB / 0.7982 GB, free: 8.539 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004014/0.6531, allocations: 98.25 kB / 0.7983 GB, free: 8.52 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002728/0.6534, allocations: 153.5 kB / 0.7985 GB, free: 8.512 MB / 0.5919 GB Notification: Performance of SimCode: time 1.223e-06/0.6534, allocations: 0 / 0.7985 GB, free: 8.512 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04714/0.7005, allocations: 12.2 MB / 0.8104 GB, free: 4.793 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.94, allocations: 6.812 kB / 0.8104 GB, free: 4.793 MB / 0.5919 GB " [Timeout remaining time 647] (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: 16.6408492139999]