Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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.001804/0.001804, 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.002565/0.002565, allocations: 216.8 kB / 22.25 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.421/1.421, 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 main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.8244/0.8244, allocations: 100.3 MB / 412.7 MB, free: 3.641 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.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.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_dev_ThermofluidStream_Examples_WaterHammer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Examples.WaterHammer,fileNamePrefix="ThermofluidStream_dev_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.00244/0.00244, allocations: 87.69 kB / 0.5632 GB, free: 35.91 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1371, allocations: 74.47 MB / 0.636 GB, free: 7.668 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03396/0.1711, allocations: 31.57 MB / 0.6668 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01163/0.1827, allocations: 9.812 MB / 0.6764 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009168/0.1836, allocations: 55.44 kB / 0.6764 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001289/0.1849, allocations: 0.5278 MB / 0.6769 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.002005/0.1869, allocations: 0.8268 MB / 0.6777 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001714/0.1886, allocations: 0.7078 MB / 0.6784 GB, free: 12.01 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001818/0.1904, allocations: 1.501 MB / 0.6799 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003803/0.1908, allocations: 194.2 kB / 0.6801 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001068/0.1919, allocations: 0.642 MB / 0.6807 GB, free: 9.652 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006783/0.1926, allocations: 0.5403 MB / 0.6812 GB, free: 9.109 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001153/0.1927, allocations: 80 kB / 0.6813 GB, free: 9.031 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001342/0.194, allocations: 0.5307 MB / 0.6818 GB, free: 8.5 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002046/0.1942, allocations: 207.1 kB / 0.682 GB, free: 8.297 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0005033/0.1947, allocations: 0.5206 MB / 0.6825 GB, free: 7.773 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001981/0.1967, allocations: 1.401 MB / 0.6839 GB, free: 6.367 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1967, allocations: 0 / 0.6839 GB, free: 6.367 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.272e-06/0.1967, allocations: 0 / 0.6839 GB, free: 6.367 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.274e-05/0.1967, allocations: 0 / 0.6839 GB, free: 6.367 MB / 0.5137 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.0025/0.1992, allocations: 1.383 MB / 0.6853 GB, free: 4.945 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.1993, allocations: 12.03 kB / 0.6853 GB, free: 4.934 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001384/0.1994, allocations: 114.7 kB / 0.6854 GB, free: 4.812 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002567/0.1997, allocations: 136.1 kB / 0.6855 GB, free: 4.68 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001187/0.2009, allocations: 0.6676 MB / 0.6862 GB, free: 3.98 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.895e-05/0.2009, allocations: 61.98 kB / 0.6862 GB, free: 3.918 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001152/0.201, allocations: 84 kB / 0.6863 GB, free: 3.836 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.2023, allocations: 0.7993 MB / 0.6871 GB, free: 3.02 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.2024, allocations: 0 / 0.6871 GB, free: 3.02 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.905e-05/0.2024, allocations: 32 kB / 0.6871 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.579e-05/0.2025, allocations: 16 kB / 0.6871 GB, free: 2.973 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001184/0.2036, allocations: 0.6441 MB / 0.6878 GB, free: 2.328 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00459/0.2082, allocations: 3.643 MB / 0.6913 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001122/0.2093, allocations: 0.5541 MB / 0.6919 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004641/0.2098, allocations: 252.5 kB / 0.6921 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002046/0.2119, allocations: 1.096 MB / 0.6932 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006768/0.2125, allocations: 375.2 kB / 0.6935 GB, free: 12.02 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=63): time 1.934e-06/0.2125, allocations: 0 / 0.6935 GB, free: 12.02 MB / 0.5294 GB Notification: Performance of matching and sorting (n=65): time 0.003731/0.2163, allocations: 1.729 MB / 0.6952 GB, free: 10.26 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.487e-05/0.2163, allocations: 89.75 kB / 0.6953 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007679/0.2171, allocations: 0.6337 MB / 0.6959 GB, free: 9.512 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.369e-05/0.2172, allocations: 45.7 kB / 0.696 GB, free: 9.461 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003606/0.2175, allocations: 440.6 kB / 0.6964 GB, free: 9.023 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001905/0.2177, allocations: 238 kB / 0.6966 GB, free: 8.789 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000186/0.2179, allocations: 118.3 kB / 0.6967 GB, free: 8.664 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.218, allocations: 330 kB / 0.697 GB, free: 8.336 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000446/0.2185, allocations: 209.5 kB / 0.6972 GB, free: 8.133 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005431/0.219, allocations: 331.4 kB / 0.6976 GB, free: 7.773 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009767/0.22, allocations: 0.5578 MB / 0.6981 GB, free: 7.176 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.22, allocations: 8 kB / 0.6981 GB, free: 7.168 MB / 0.5294 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001529/0.2215, allocations: 0.8074 MB / 0.6989 GB, free: 6.344 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.618e-05/0.2216, allocations: 39.73 kB / 0.6989 GB, free: 6.301 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.2216, allocations: 0 / 0.6989 GB, free: 6.301 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000382/0.222, allocations: 92.78 kB / 0.699 GB, free: 6.207 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005187/0.2225, allocations: 135.9 kB / 0.6992 GB, free: 6.074 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002138/0.2246, allocations: 1.875 MB / 0.701 GB, free: 4.086 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004/0.225, allocations: 27.98 kB / 0.701 GB, free: 4.059 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.572e-05/0.2251, allocations: 31.98 kB / 0.701 GB, free: 4.027 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.0003839/0.2255, allocations: 225.6 kB / 0.7013 GB, free: 3.797 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001334/0.2256, allocations: 99.33 kB / 0.7014 GB, free: 3.699 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001671/0.2273, allocations: 0.849 MB / 0.7022 GB, free: 2.828 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.2273, allocations: 11.94 kB / 0.7022 GB, free: 2.816 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2273, allocations: 0 / 0.7022 GB, free: 2.816 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.2273, allocations: 3.984 kB / 0.7022 GB, free: 2.812 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00264/0.23, allocations: 1.576 MB / 0.7037 GB, free: 1.172 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.23, allocations: 0 / 0.7037 GB, free: 1.172 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004723/0.2304, allocations: 108 kB / 0.7038 GB, free: 1.066 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003236/0.2308, allocations: 112.6 kB / 0.7039 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.662e-05/0.2308, allocations: 23.98 kB / 0.704 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002117/0.2329, allocations: 1.866 MB / 0.7058 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.2329, allocations: 0 / 0.7058 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001947/0.2349, allocations: 1.081 MB / 0.7068 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003261/0.2352, allocations: 139.4 kB / 0.707 GB, free: 13.7 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.649e-05/0.2353, allocations: 20 kB / 0.707 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003953/0.2357, allocations: 36.19 kB / 0.707 GB, free: 13.64 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001276/0.2358, allocations: 56.39 kB / 0.7071 GB, free: 13.59 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.199e-05/0.2359, allocations: 23.98 kB / 0.7071 GB, free: 13.57 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0005742/0.2365, allocations: 459 kB / 0.7075 GB, free: 13.12 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.2365, allocations: 0 / 0.7075 GB, free: 13.12 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0008333/0.2373, allocations: 279.7 kB / 0.7078 GB, free: 12.85 MB / 0.545 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.00271/0.24, allocations: 1.89 MB / 0.7097 GB, free: 10.92 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001541/0.2415, allocations: 0.7406 MB / 0.7104 GB, free: 10.15 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.2415, allocations: 4 kB / 0.7104 GB, free: 10.15 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.000849/0.2424, allocations: 445.2 kB / 0.7108 GB, free: 9.703 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001133/0.2435, allocations: 253.9 kB / 0.7111 GB, free: 9.461 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01056/0.2541, allocations: 6.6 MB / 0.7175 GB, free: 2.656 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007733/0.2549, allocations: 1.009 MB / 0.7185 GB, free: 1.621 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0005615/0.2554, allocations: 153.8 kB / 0.7186 GB, free: 1.469 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004904/0.2559, allocations: 363.3 kB / 0.719 GB, free: 1.113 MB / 0.545 GB Notification: Performance of SimCode: time 1.052e-06/0.2559, allocations: 0 / 0.719 GB, free: 1.113 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0611/0.317, allocations: 23.26 MB / 0.7417 GB, free: 10.08 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.72/14.04, allocations: 11.67 kB / 0.7417 GB, free: 10.07 MB / 0.5762 GB " [Timeout remaining time 646] (rm -f ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_Examples_WaterHammer.fmu > ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.csv","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.csv. Warning: Get data of variable Time from file ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.csv failed! Error: Could not read variable pulse.T_start in file ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.csv. Warning: Get data of variable pulse.T_start from file ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.csv failed! Error: Could not read variable pulse.count in file ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.csv. Warning: Get data of variable pulse.count from file ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.csv failed! Error: Could not read variable source.outlet.m_flow in file ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.csv. Warning: Get data of variable source.outlet.m_flow from file ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.124510824000026]