Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Examples.WaterHammer.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.001274/0.001274, allocations: 103.2 kB / 16.45 MB, free: 6.449 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.001318/0.001318, allocations: 208.9 kB / 19.42 MB, free: 3.641 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.353/1.353, allocations: 230.6 MB / 252.8 MB, free: 8.945 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.7222/0.7222, allocations: 94.56 MB / 403.4 MB, free: 10.14 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.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_WaterHammer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_ThermofluidStream_Examples_WaterHammer",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.002394/0.002394, allocations: 82.8 kB / 0.5499 GB, free: 38.94 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1298, allocations: 73.02 MB / 0.6212 GB, free: 1.98 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03502/0.1648, allocations: 31.24 MB / 0.6517 GB, free: 2.621 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01273/0.1775, allocations: 9.738 MB / 0.6612 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001105/0.1786, allocations: 55.5 kB / 0.6613 GB, free: 8.801 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001477/0.1801, allocations: 0.5278 MB / 0.6618 GB, free: 8.27 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002372/0.1825, allocations: 0.8268 MB / 0.6626 GB, free: 7.438 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001947/0.1844, allocations: 0.6892 MB / 0.6632 GB, free: 6.746 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002066/0.1865, allocations: 1.499 MB / 0.6647 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003956/0.1869, allocations: 201.7 kB / 0.6649 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001184/0.1881, allocations: 0.6459 MB / 0.6655 GB, free: 4.387 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006728/0.1887, allocations: 0.5403 MB / 0.6661 GB, free: 3.844 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001226/0.1889, allocations: 80 kB / 0.6661 GB, free: 3.766 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001454/0.1903, allocations: 0.5229 MB / 0.6666 GB, free: 3.242 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002171/0.1905, allocations: 207.1 kB / 0.6668 GB, free: 3.039 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0005483/0.1911, allocations: 0.5245 MB / 0.6674 GB, free: 2.512 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002348/0.1934, allocations: 1.397 MB / 0.6687 GB, free: 1.109 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.1934, allocations: 0 / 0.6687 GB, free: 1.109 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.403e-06/0.1934, allocations: 0 / 0.6687 GB, free: 1.109 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.575e-05/0.1935, allocations: 0 / 0.6687 GB, free: 1.109 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.00283/0.1963, allocations: 1.45 MB / 0.6701 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.1963, allocations: 12.03 kB / 0.6701 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001476/0.1965, allocations: 122.7 kB / 0.6703 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002901/0.1968, allocations: 124.2 kB / 0.6704 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001229/0.198, allocations: 0.7553 MB / 0.6711 GB, free: 14.54 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.932e-05/0.1981, allocations: 58 kB / 0.6712 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.1982, allocations: 83.94 kB / 0.6713 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001426/0.1996, allocations: 0.7954 MB / 0.672 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.1996, allocations: 0 / 0.672 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.851e-05/0.1997, allocations: 28 kB / 0.6721 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.944e-05/0.1997, allocations: 20 kB / 0.6721 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001214/0.2009, allocations: 0.6285 MB / 0.6727 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004846/0.2058, allocations: 3.719 MB / 0.6763 GB, free: 8.82 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0012/0.207, allocations: 0.5451 MB / 0.6769 GB, free: 8.266 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004839/0.2075, allocations: 254.4 kB / 0.6771 GB, free: 8.016 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003126/0.2106, allocations: 2.543 MB / 0.6796 GB, free: 5.098 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007215/0.2113, allocations: 365.9 kB / 0.6799 GB, free: 4.719 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=63): time 2.345e-06/0.2113, allocations: 0 / 0.6799 GB, free: 4.719 MB / 0.5137 GB Notification: Performance of matching and sorting (n=65): time 0.004043/0.2154, allocations: 1.948 MB / 0.6818 GB, free: 2.68 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.316e-05/0.2154, allocations: 89.67 kB / 0.6819 GB, free: 2.574 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008241/0.2163, allocations: 0.6337 MB / 0.6825 GB, free: 1.934 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.953e-05/0.2163, allocations: 37.7 kB / 0.6826 GB, free: 1.891 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.000393/0.2167, allocations: 444.6 kB / 0.683 GB, free: 1.453 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002073/0.2169, allocations: 242 kB / 0.6832 GB, free: 1.215 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001967/0.2171, allocations: 122.3 kB / 0.6833 GB, free: 1.086 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001729/0.2173, allocations: 334 kB / 0.6837 GB, free: 0.7539 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004662/0.2178, allocations: 213.5 kB / 0.6839 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005545/0.2183, allocations: 327.4 kB / 0.6842 GB, free: 200 kB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001094/0.2194, allocations: 0.5614 MB / 0.6847 GB, free: 15.59 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.2194, allocations: 4 kB / 0.6847 GB, free: 15.59 MB / 0.5294 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001652/0.2211, allocations: 0.7957 MB / 0.6855 GB, free: 14.78 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.185e-05/0.2211, allocations: 37.98 kB / 0.6855 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.2211, allocations: 3.938 kB / 0.6856 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003933/0.2215, allocations: 100.8 kB / 0.6856 GB, free: 14.63 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005074/0.222, allocations: 127.8 kB / 0.6858 GB, free: 14.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002307/0.2243, allocations: 1.981 MB / 0.6877 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004364/0.2248, allocations: 23.98 kB / 0.6877 GB, free: 12.36 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.736e-05/0.2248, allocations: 35.92 kB / 0.6878 GB, free: 12.32 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (73): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 1 * 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 {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004057/0.2253, allocations: 222 kB / 0.688 GB, free: 12.09 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001349/0.2254, allocations: 95.33 kB / 0.6881 GB, free: 12 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001739/0.2271, allocations: 0.8504 MB / 0.6889 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.2271, allocations: 4 kB / 0.6889 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.2271, allocations: 4 kB / 0.6889 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.2271, allocations: 3.984 kB / 0.6889 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002665/0.2298, allocations: 1.605 MB / 0.6905 GB, free: 9.441 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.2298, allocations: 4 kB / 0.6905 GB, free: 9.438 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004762/0.2303, allocations: 115.9 kB / 0.6906 GB, free: 9.324 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003473/0.2306, allocations: 108.7 kB / 0.6907 GB, free: 9.215 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.494e-05/0.2307, allocations: 23.98 kB / 0.6907 GB, free: 9.191 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002153/0.2328, allocations: 1.977 MB / 0.6926 GB, free: 7.066 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.2329, allocations: 4.031 kB / 0.6926 GB, free: 7.062 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001969/0.2348, allocations: 1.074 MB / 0.6937 GB, free: 5.965 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003228/0.2351, allocations: 216.5 kB / 0.6939 GB, free: 5.734 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.912e-05/0.2352, allocations: 12 kB / 0.6939 GB, free: 5.723 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003949/0.2356, allocations: 35.91 kB / 0.6939 GB, free: 5.688 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001347/0.2358, allocations: 52.5 kB / 0.694 GB, free: 5.633 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.746e-05/0.2358, allocations: 27.97 kB / 0.694 GB, free: 5.605 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0005847/0.2364, allocations: 455 kB / 0.6945 GB, free: 5.164 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2364, allocations: 0 / 0.6945 GB, free: 5.164 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.000888/0.2373, allocations: 283.7 kB / 0.6947 GB, free: 4.887 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 5 (flowResistance.inlet.m_flow,checkValve.inlet.m_flow,reservoir.M,reservoir.U_med,firstOrder.y) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00281/0.2401, allocations: 1.872 MB / 0.6966 GB, free: 2.977 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001575/0.2417, allocations: 0.7406 MB / 0.6973 GB, free: 2.219 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.363e-06/0.2417, allocations: 7.969 kB / 0.6973 GB, free: 2.211 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008662/0.2426, allocations: 445.6 kB / 0.6977 GB, free: 1.758 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001153/0.2437, allocations: 248.5 kB / 0.698 GB, free: 1.523 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0106/0.2543, allocations: 6.605 MB / 0.7044 GB, free: 10.71 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007343/0.255, allocations: 1.001 MB / 0.7054 GB, free: 9.68 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0005297/0.2556, allocations: 157.8 kB / 0.7055 GB, free: 9.523 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005094/0.2561, allocations: 363.3 kB / 0.7059 GB, free: 9.168 MB / 0.545 GB Notification: Performance of SimCode: time 1.022e-06/0.2561, allocations: 0 / 0.7059 GB, free: 9.168 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06109/0.3172, allocations: 22.78 MB / 0.7281 GB, free: 2.598 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/12.16, allocations: 2.344 kB / 0.7281 GB, free: 2.598 MB / 0.5606 GB " [Timeout remaining time 648] (rm -f ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe >> ../files/ThermofluidStream_ThermofluidStream.Examples.WaterHammer.sim & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.csv --start-time 0 --stop-time 25 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.025 ThermofluidStream_ThermofluidStream_Examples_WaterHammer.fmu > ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Examples.WaterHammer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.csv. Warning: Get data of variable Time from file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.csv failed! Error: Could not read variable pulse.T_start in file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.csv. Warning: Get data of variable pulse.T_start from file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.csv failed! Error: Could not read variable pulse.count in file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.csv. Warning: Get data of variable pulse.count from file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.csv failed! Error: Could not read variable source.outlet.m_flow in file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.csv. Warning: Get data of variable source.outlet.m_flow from file ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.799407825994422]