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.001762/0.001762, 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.002836/0.002836, allocations: 219.8 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.554/1.554, allocations: 230.6 MB / 256 MB, free: 7.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.7948/0.7948, allocations: 94.56 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.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.002573/0.002573, allocations: 83.64 kB / 0.5549 GB, free: 38.79 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.145, allocations: 73.06 MB / 0.6263 GB, free: 468 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03639/0.1814, allocations: 31.57 MB / 0.6571 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01345/0.1948, allocations: 9.82 MB / 0.6667 GB, free: 6.918 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009664/0.1958, allocations: 55.5 kB / 0.6668 GB, free: 6.863 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001414/0.1972, allocations: 0.5318 MB / 0.6673 GB, free: 6.328 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002405/0.1996, allocations: 0.8269 MB / 0.6681 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001989/0.2016, allocations: 0.7028 MB / 0.6688 GB, free: 4.793 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002192/0.2038, allocations: 1.509 MB / 0.6702 GB, free: 3.277 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004258/0.2042, allocations: 194.2 kB / 0.6704 GB, free: 3.07 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00125/0.2055, allocations: 0.6498 MB / 0.6711 GB, free: 2.418 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007724/0.2062, allocations: 0.5404 MB / 0.6716 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001217/0.2064, allocations: 76 kB / 0.6717 GB, free: 1.801 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001494/0.2079, allocations: 0.5307 MB / 0.6722 GB, free: 1.27 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000209/0.2081, allocations: 207.1 kB / 0.6724 GB, free: 1.066 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0005433/0.2086, allocations: 0.5246 MB / 0.6729 GB, free: 0.5391 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002403/0.211, allocations: 1.397 MB / 0.6743 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.211, allocations: 0 / 0.6743 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.823e-06/0.211, allocations: 0 / 0.6743 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 2.016e-05/0.211, allocations: 0 / 0.6743 GB, free: 15.14 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.002699/0.2137, allocations: 1.379 MB / 0.6756 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.2138, allocations: 12.03 kB / 0.6756 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001419/0.2139, allocations: 118.7 kB / 0.6757 GB, free: 13.58 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002942/0.2142, allocations: 128.2 kB / 0.6759 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001268/0.2155, allocations: 0.6676 MB / 0.6765 GB, free: 12.76 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.044e-05/0.2155, allocations: 58 kB / 0.6766 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001273/0.2157, allocations: 91.88 kB / 0.6766 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001402/0.2171, allocations: 0.7877 MB / 0.6774 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.917e-05/0.2171, allocations: 4 kB / 0.6774 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.687e-05/0.2172, allocations: 32 kB / 0.6774 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.385e-05/0.2172, allocations: 16 kB / 0.6775 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001259/0.2184, allocations: 0.6402 MB / 0.6781 GB, free: 11.11 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005012/0.2235, allocations: 3.659 MB / 0.6817 GB, free: 7.102 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001161/0.2246, allocations: 0.5455 MB / 0.6822 GB, free: 6.547 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005045/0.2251, allocations: 258.6 kB / 0.6824 GB, free: 6.293 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002208/0.2273, allocations: 1.088 MB / 0.6835 GB, free: 5.188 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006955/0.228, allocations: 379.1 kB / 0.6839 GB, free: 4.797 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=63): time 1.914e-06/0.228, allocations: 0 / 0.6839 GB, free: 4.797 MB / 0.5137 GB Notification: Performance of matching and sorting (n=65): time 0.003777/0.2318, allocations: 1.721 MB / 0.6855 GB, free: 3.043 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.333e-05/0.2319, allocations: 85.77 kB / 0.6856 GB, free: 2.941 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000767/0.2326, allocations: 0.6337 MB / 0.6862 GB, free: 2.301 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.069e-05/0.2327, allocations: 41.7 kB / 0.6863 GB, free: 2.254 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003625/0.2331, allocations: 440.6 kB / 0.6867 GB, free: 1.82 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001964/0.2333, allocations: 245.9 kB / 0.6869 GB, free: 1.578 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001907/0.2334, allocations: 126.3 kB / 0.6871 GB, free: 1.449 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001465/0.2336, allocations: 333.9 kB / 0.6874 GB, free: 1.117 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004538/0.234, allocations: 209.5 kB / 0.6876 GB, free: 0.9141 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005371/0.2346, allocations: 323.5 kB / 0.6879 GB, free: 0.5586 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001009/0.2356, allocations: 0.5579 MB / 0.6884 GB, free: 15.96 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2356, allocations: 0 / 0.6884 GB, free: 15.96 MB / 0.5294 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001586/0.2372, allocations: 0.8112 MB / 0.6892 GB, free: 15.13 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.081e-05/0.2372, allocations: 35.73 kB / 0.6893 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.2372, allocations: 4.281 kB / 0.6893 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003727/0.2376, allocations: 96.78 kB / 0.6894 GB, free: 14.99 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005269/0.2381, allocations: 131.8 kB / 0.6895 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00226/0.2404, allocations: 1.877 MB / 0.6913 GB, free: 12.87 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004034/0.2408, allocations: 27.98 kB / 0.6913 GB, free: 12.84 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.232e-05/0.2409, allocations: 28 kB / 0.6914 GB, free: 12.82 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.0004117/0.2413, allocations: 221.9 kB / 0.6916 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001392/0.2414, allocations: 103.3 kB / 0.6917 GB, free: 12.49 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001745/0.2431, allocations: 0.8488 MB / 0.6925 GB, free: 11.61 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/0.2432, allocations: 4 kB / 0.6925 GB, free: 11.61 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-06/0.2432, allocations: 4 kB / 0.6925 GB, free: 11.61 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.2432, allocations: 3.984 kB / 0.6925 GB, free: 11.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002781/0.246, allocations: 1.572 MB / 0.6941 GB, free: 9.965 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.246, allocations: 7.938 kB / 0.6941 GB, free: 9.957 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004761/0.2464, allocations: 103.9 kB / 0.6942 GB, free: 9.855 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000351/0.2468, allocations: 116.7 kB / 0.6943 GB, free: 9.738 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.718e-05/0.2468, allocations: 19.98 kB / 0.6943 GB, free: 9.719 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002289/0.2491, allocations: 1.878 MB / 0.6961 GB, free: 7.727 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.2491, allocations: 4.062 kB / 0.6961 GB, free: 7.723 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002091/0.2512, allocations: 1.081 MB / 0.6972 GB, free: 6.613 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003401/0.2516, allocations: 139.4 kB / 0.6973 GB, free: 6.477 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.671e-05/0.2516, allocations: 16 kB / 0.6973 GB, free: 6.461 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003919/0.252, allocations: 35.91 kB / 0.6974 GB, free: 6.426 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/0.2522, allocations: 64.33 kB / 0.6974 GB, free: 6.363 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.525e-05/0.2522, allocations: 23.98 kB / 0.6975 GB, free: 6.34 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0006082/0.2529, allocations: 455 kB / 0.6979 GB, free: 5.898 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.2529, allocations: 0 / 0.6979 GB, free: 5.898 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0009016/0.2538, allocations: 283.7 kB / 0.6982 GB, free: 5.621 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.002912/0.2567, allocations: 1.871 MB / 0.7 GB, free: 3.711 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001669/0.2583, allocations: 0.7441 MB / 0.7007 GB, free: 2.941 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.2583, allocations: 4.469 kB / 0.7007 GB, free: 2.938 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008366/0.2592, allocations: 453.2 kB / 0.7011 GB, free: 2.48 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001167/0.2603, allocations: 234.3 kB / 0.7014 GB, free: 2.262 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01005/0.2704, allocations: 6.607 MB / 0.7078 GB, free: 11.45 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006631/0.2711, allocations: 1.016 MB / 0.7088 GB, free: 10.41 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0005023/0.2716, allocations: 141.9 kB / 0.709 GB, free: 10.27 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004803/0.272, allocations: 367.3 kB / 0.7093 GB, free: 9.906 MB / 0.545 GB Notification: Performance of SimCode: time 9.31e-07/0.272, allocations: 0 / 0.7093 GB, free: 9.906 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06353/0.3356, allocations: 23.26 MB / 0.732 GB, free: 2.871 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.12/14.46, allocations: 6.875 kB / 0.732 GB, free: 2.867 MB / 0.5606 GB " [Timeout remaining time 645] (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: 18.55460967399995]