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.001814/0.001814, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002266/0.002266, allocations: 217.1 kB / 22.25 MB, free: 4.855 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.449/1.449, allocations: 230.6 MB / 256 MB, free: 7.773 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.7722/0.7722, allocations: 94.63 MB / 407.1 MB, free: 8.844 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.002498/0.002498, allocations: 87.56 kB / 0.5549 GB, free: 38.5 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1387/0.1412, allocations: 73.06 MB / 0.6263 GB, free: 180 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03662/0.1778, allocations: 28.62 MB / 0.6542 GB, free: 3.445 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01316/0.1909, allocations: 8.921 MB / 0.6629 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009606/0.1919, allocations: 51.56 kB / 0.663 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001501/0.1934, allocations: 472.7 kB / 0.6634 GB, free: 9.984 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002587/0.196, allocations: 0.823 MB / 0.6642 GB, free: 9.156 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002125/0.1981, allocations: 0.6865 MB / 0.6649 GB, free: 8.469 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002364/0.2005, allocations: 1.501 MB / 0.6664 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004459/0.2009, allocations: 182.2 kB / 0.6665 GB, free: 6.766 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001379/0.2023, allocations: 0.6498 MB / 0.6672 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009679/0.2033, allocations: 497.4 kB / 0.6677 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002078/0.2035, allocations: 80 kB / 0.6677 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001457/0.2049, allocations: 487.5 kB / 0.6682 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002685/0.2052, allocations: 207.1 kB / 0.6684 GB, free: 4.867 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0006367/0.2058, allocations: 433.8 kB / 0.6688 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002162/0.208, allocations: 1.393 MB / 0.6702 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.208, allocations: 0 / 0.6702 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.452e-06/0.208, allocations: 0 / 0.6702 GB, free: 3.043 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.271e-05/0.208, allocations: 0 / 0.6702 GB, free: 3.043 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.002678/0.2107, allocations: 1.394 MB / 0.6715 GB, free: 1.605 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.2108, allocations: 8.031 kB / 0.6715 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001494/0.2109, allocations: 114.7 kB / 0.6716 GB, free: 1.477 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003223/0.2112, allocations: 140.1 kB / 0.6718 GB, free: 1.34 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001284/0.2125, allocations: 0.6638 MB / 0.6724 GB, free: 0.6484 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.34e-05/0.2126, allocations: 58 kB / 0.6725 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001232/0.2127, allocations: 83.94 kB / 0.6726 GB, free: 0.5117 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001557/0.2143, allocations: 0.9962 MB / 0.6735 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.03e-05/0.2143, allocations: 0 / 0.6735 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.597e-05/0.2143, allocations: 32 kB / 0.6736 GB, free: 15.41 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.958e-05/0.2144, allocations: 24 kB / 0.6736 GB, free: 15.39 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001241/0.2156, allocations: 0.6324 MB / 0.6742 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004125/0.2197, allocations: 2.263 MB / 0.6764 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001142/0.2209, allocations: 0.5433 MB / 0.677 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004987/0.2214, allocations: 260.6 kB / 0.6772 GB, free: 11.63 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002127/0.2235, allocations: 0.9829 MB / 0.6782 GB, free: 10.63 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008519/0.2243, allocations: 0.5506 MB / 0.6787 GB, free: 10.01 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=63): time 2.575e-06/0.2243, allocations: 3.938 kB / 0.6787 GB, free: 10.01 MB / 0.5137 GB Notification: Performance of matching and sorting (n=65): time 0.004041/0.2284, allocations: 1.842 MB / 0.6805 GB, free: 8.129 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.327e-05/0.2285, allocations: 111.5 kB / 0.6806 GB, free: 7.996 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000816/0.2293, allocations: 0.6376 MB / 0.6812 GB, free: 7.352 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.21e-05/0.2294, allocations: 41.7 kB / 0.6813 GB, free: 7.305 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003981/0.2298, allocations: 448.6 kB / 0.6817 GB, free: 6.863 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002058/0.23, allocations: 234 kB / 0.6819 GB, free: 6.633 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001998/0.2302, allocations: 122.3 kB / 0.682 GB, free: 6.508 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001644/0.2303, allocations: 330 kB / 0.6824 GB, free: 6.18 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004706/0.2308, allocations: 239.2 kB / 0.6826 GB, free: 5.941 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006187/0.2314, allocations: 401.4 kB / 0.683 GB, free: 5.488 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001041/0.2325, allocations: 0.5781 MB / 0.6835 GB, free: 4.871 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.2325, allocations: 0 / 0.6835 GB, free: 4.871 MB / 0.5137 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001598/0.2341, allocations: 0.8367 MB / 0.6843 GB, free: 4.012 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.748e-05/0.2341, allocations: 29.7 kB / 0.6844 GB, free: 3.977 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/0.2341, allocations: 4 kB / 0.6844 GB, free: 3.973 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003728/0.2345, allocations: 96.78 kB / 0.6845 GB, free: 3.875 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005086/0.235, allocations: 135.8 kB / 0.6846 GB, free: 3.742 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00222/0.2372, allocations: 1.854 MB / 0.6864 GB, free: 1.773 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004091/0.2376, allocations: 24.08 kB / 0.6864 GB, free: 1.75 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.694e-05/0.2377, allocations: 35.98 kB / 0.6865 GB, free: 1.715 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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.0003727/0.2381, allocations: 217.7 kB / 0.6867 GB, free: 1.492 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001386/0.2382, allocations: 91.38 kB / 0.6868 GB, free: 1.402 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001675/0.2399, allocations: 0.8372 MB / 0.6876 GB, free: 0.5391 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.2399, allocations: 7.938 kB / 0.6876 GB, free: 0.5312 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.2399, allocations: 4 kB / 0.6876 GB, free: 0.5273 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.2399, allocations: 3.938 kB / 0.6876 GB, free: 0.5234 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002591/0.2425, allocations: 1.466 MB / 0.689 GB, free: 14.99 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.2425, allocations: 4 kB / 0.689 GB, free: 14.99 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004712/0.243, allocations: 115.8 kB / 0.6891 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003165/0.2433, allocations: 104.8 kB / 0.6892 GB, free: 14.77 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.979e-05/0.2433, allocations: 23.98 kB / 0.6893 GB, free: 14.75 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002111/0.2454, allocations: 1.847 MB / 0.6911 GB, free: 12.79 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.2454, allocations: 0 / 0.6911 GB, free: 12.79 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001912/0.2474, allocations: 1.076 MB / 0.6921 GB, free: 11.68 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003118/0.2477, allocations: 135.4 kB / 0.6922 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.771e-05/0.2478, allocations: 19.88 kB / 0.6923 GB, free: 11.53 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003946/0.2482, allocations: 31.97 kB / 0.6923 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.2483, allocations: 56.34 kB / 0.6923 GB, free: 11.44 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.244e-05/0.2483, allocations: 27.98 kB / 0.6924 GB, free: 11.41 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0005933/0.2489, allocations: 455 kB / 0.6928 GB, free: 10.97 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8e-08/0.2489, allocations: 0 / 0.6928 GB, free: 10.97 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.000798/0.2497, allocations: 267.8 kB / 0.6931 GB, free: 10.71 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 (54): * Single equations (assignments): 51 * 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.002689/0.2524, allocations: 1.859 MB / 0.6949 GB, free: 8.82 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001605/0.254, allocations: 0.7692 MB / 0.6956 GB, free: 8.016 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/0.254, allocations: 4 kB / 0.6956 GB, free: 8.012 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008822/0.2549, allocations: 442.1 kB / 0.6961 GB, free: 7.562 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001146/0.2561, allocations: 237.8 kB / 0.6963 GB, free: 7.34 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01097/0.267, allocations: 6.716 MB / 0.7028 GB, free: 400 kB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005522/0.2676, allocations: 420.1 kB / 0.7032 GB, free: 15.95 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0006257/0.2682, allocations: 141.8 kB / 0.7034 GB, free: 15.8 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005343/0.2687, allocations: 363.3 kB / 0.7037 GB, free: 15.45 MB / 0.545 GB Notification: Performance of SimCode: time 1.333e-06/0.2687, allocations: 0 / 0.7037 GB, free: 15.45 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06834/0.3371, allocations: 24.1 MB / 0.7273 GB, free: 7.688 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/13.24, allocations: 2.656 kB / 0.7273 GB, free: 7.688 MB / 0.5606 GB " [Timeout remaining time 647] (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: 17.185087251942605]