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.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.0008229/0.0008229, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.000906/0.000906, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.9112/0.9112, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.651/0.651, allocations: 116 MB / 375.2 MB, free: 4.207 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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_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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.193e-06/1.193e-06, allocations: 0 / 0.5532 GB, free: 13.36 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.44e-05/1.559e-05, allocations: 2.281 kB / 0.5532 GB, free: 13.36 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Topology.Tests.TestJunction): time 0.4201/0.4202, allocations: 125.6 MB / 0.6759 GB, free: 6.93 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.003445/0.4236, allocations: 3.416 MB / 0.6792 GB, free: 6.656 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003566/0.424, allocations: 41.12 kB / 0.6793 GB, free: 6.633 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0006108/0.4246, allocations: 187.3 kB / 0.6794 GB, free: 6.578 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.0008176/0.4254, allocations: 367.1 kB / 0.6798 GB, free: 6.527 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.001132/0.4265, allocations: 446.3 kB / 0.6802 GB, free: 6.484 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0009163/0.4274, allocations: 0.8222 MB / 0.681 GB, free: 6.48 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001895/0.4276, allocations: 70.86 kB / 0.6811 GB, free: 6.465 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007889/0.4284, allocations: 0.5163 MB / 0.6816 GB, free: 6.445 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003993/0.4288, allocations: 335.1 kB / 0.6819 GB, free: 6.438 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 4.726e-05/0.4289, allocations: 31.16 kB / 0.6819 GB, free: 6.438 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006841/0.4296, allocations: 393.7 kB / 0.6823 GB, free: 6.395 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 9.165e-05/0.4296, allocations: 120.8 kB / 0.6824 GB, free: 6.367 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.4298, allocations: 150.8 kB / 0.6826 GB, free: 6.344 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0007225/0.4305, allocations: 0.665 MB / 0.6832 GB, free: 6.266 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.4305, allocations: 3 kB / 0.6832 GB, free: 6.266 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.803e-06/0.4305, allocations: 1 kB / 0.6832 GB, free: 6.266 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.4305, allocations: 0 / 0.6832 GB, free: 6.266 MB / 0.5573 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.001103/0.4316, allocations: 0.7668 MB / 0.684 GB, free: 5.816 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.4317, allocations: 11.41 kB / 0.684 GB, free: 5.816 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.309e-05/0.4317, allocations: 66.09 kB / 0.6841 GB, free: 5.773 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.096e-05/0.4318, allocations: 57.97 kB / 0.6841 GB, free: 5.742 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005362/0.4323, allocations: 437.3 kB / 0.6845 GB, free: 5.527 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.373e-05/0.4323, allocations: 26.66 kB / 0.6845 GB, free: 5.52 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.209e-05/0.4324, allocations: 22.66 kB / 0.6846 GB, free: 5.52 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005734/0.433, allocations: 441.3 kB / 0.685 GB, free: 5.449 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.433, allocations: 1.531 kB / 0.685 GB, free: 5.449 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.053e-05/0.433, allocations: 17.06 kB / 0.685 GB, free: 5.445 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-05/0.4331, allocations: 17.31 kB / 0.685 GB, free: 5.445 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000569/0.4336, allocations: 483.8 kB / 0.6855 GB, free: 5.438 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00163/0.4353, allocations: 1.248 MB / 0.6867 GB, free: 4.891 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004109/0.4357, allocations: 220.5 kB / 0.6869 GB, free: 4.867 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002469/0.4359, allocations: 194 kB / 0.6871 GB, free: 4.855 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001565/0.4361, allocations: 35.89 kB / 0.6871 GB, free: 4.848 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.899e-05/0.4361, allocations: 36.31 kB / 0.6872 GB, free: 4.809 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=32): time 3.106e-06/0.4361, allocations: 0 / 0.6872 GB, free: 4.809 MB / 0.5573 GB Notification: Performance of matching and sorting (n=33): time 0.001963/0.4381, allocations: 1.234 MB / 0.6884 GB, free: 4.52 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.74e-05/0.4381, allocations: 55.31 kB / 0.6884 GB, free: 4.457 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003395/0.4384, allocations: 410.8 kB / 0.6888 GB, free: 4.348 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 1.803e-05/0.4385, allocations: 30.33 kB / 0.6888 GB, free: 4.316 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 9.241e-05/0.4385, allocations: 210.3 kB / 0.689 GB, free: 4.223 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 5.909e-05/0.4386, allocations: 125.9 kB / 0.6892 GB, free: 4.137 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.639e-05/0.4387, allocations: 65.78 kB / 0.6892 GB, free: 4.121 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 5.761e-05/0.4387, allocations: 357.7 kB / 0.6896 GB, free: 3.809 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001685/0.4389, allocations: 142 kB / 0.6897 GB, free: 3.809 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001692/0.4391, allocations: 146 kB / 0.6898 GB, free: 3.809 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003839/0.4395, allocations: 343.8 kB / 0.6902 GB, free: 3.793 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4395, allocations: 0 / 0.6902 GB, free: 3.793 MB / 0.5573 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0006499/0.4401, allocations: 0.5239 MB / 0.6907 GB, free: 3.699 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.4401, allocations: 4.25 kB / 0.6907 GB, free: 3.699 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.4401, allocations: 7.594 kB / 0.6907 GB, free: 3.695 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000295/0.4404, allocations: 115.4 kB / 0.6908 GB, free: 3.68 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001864/0.4406, allocations: 61.25 kB / 0.6909 GB, free: 3.676 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001873/0.4425, allocations: 2.204 MB / 0.693 GB, free: 2.273 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001783/0.4427, allocations: 10.97 kB / 0.693 GB, free: 2.273 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.818e-05/0.4427, allocations: 13.34 kB / 0.693 GB, free: 2.273 MB / 0.5573 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.0002233/0.4429, allocations: 164.5 kB / 0.6932 GB, free: 2.156 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.142e-05/0.443, allocations: 51.8 kB / 0.6932 GB, free: 2.129 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000701/0.4437, allocations: 0.6542 MB / 0.6939 GB, free: 1.848 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.4437, allocations: 2.094 kB / 0.6939 GB, free: 1.848 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.4437, allocations: 2.219 kB / 0.6939 GB, free: 1.848 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.4437, allocations: 2.484 kB / 0.6939 GB, free: 1.848 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002988/0.444, allocations: 369.3 kB / 0.6942 GB, free: 1.609 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.444, allocations: 0 / 0.6942 GB, free: 1.609 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001031/0.4441, allocations: 36.09 kB / 0.6943 GB, free: 1.605 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002305/0.4443, allocations: 131.4 kB / 0.6944 GB, free: 1.562 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.146e-05/0.4444, allocations: 16.42 kB / 0.6944 GB, free: 1.555 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001705/0.4461, allocations: 2.207 MB / 0.6966 GB, free: 15.77 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.4461, allocations: 0 / 0.6966 GB, free: 15.77 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008612/0.4469, allocations: 0.6456 MB / 0.6972 GB, free: 15.46 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000133/0.4471, allocations: 82.47 kB / 0.6973 GB, free: 15.42 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.982e-05/0.4471, allocations: 7.062 kB / 0.6973 GB, free: 15.41 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.4472, allocations: 5.781 kB / 0.6973 GB, free: 15.41 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.135e-05/0.4473, allocations: 27.05 kB / 0.6973 GB, free: 15.41 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.991e-05/0.4473, allocations: 16.55 kB / 0.6973 GB, free: 15.4 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0003212/0.4476, allocations: 329 kB / 0.6977 GB, free: 15.24 MB / 0.573 GB Notification: Performance of sort global known variables: time 8e-08/0.4476, allocations: 0 / 0.6977 GB, free: 15.24 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0004687/0.4481, allocations: 118 kB / 0.6978 GB, free: 15.23 MB / 0.573 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.001153/0.4492, allocations: 1.265 MB / 0.699 GB, free: 14.38 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0008012/0.45, allocations: 0.4989 MB / 0.6995 GB, free: 14.12 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.574e-06/0.45, allocations: 0 / 0.6995 GB, free: 14.12 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0003906/0.4504, allocations: 352.3 kB / 0.6998 GB, free: 13.93 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005722/0.451, allocations: 182.6 kB / 0.7 GB, free: 13.87 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004047/0.455, allocations: 4.099 MB / 0.704 GB, free: 11.61 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002104/0.4552, allocations: 233.7 kB / 0.7042 GB, free: 11.52 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0002785/0.4555, allocations: 103 kB / 0.7043 GB, free: 11.49 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001857/0.4557, allocations: 156.3 kB / 0.7045 GB, free: 11.38 MB / 0.573 GB Notification: Performance of SimCode: time 1.583e-06/0.4557, allocations: 4 kB / 0.7045 GB, free: 11.38 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03704/0.4928, allocations: 14.69 MB / 0.7188 GB, free: 4.008 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.759/8.252, allocations: 13.5 kB / 0.7188 GB, free: 4.004 MB / 0.573 GB " [Timeout remaining time 652] (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) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Topology.Tests.TestJunction_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_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_dev_ThermofluidStream.Topology.Tests.TestJunction_res.csv. Warning: Get data of variable Time from file ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction_res.csv failed! Error: Could not read variable junctionN.outlet.m_flow in file ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction_res.csv. Warning: Get data of variable junctionN.outlet.m_flow from file ThermofluidStream_dev_ThermofluidStream.Topology.Tests.TestJunction_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.920584578998387]