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.00168/0.00168, allocations: 103.3 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.002166/0.002166, 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.538/1.538, allocations: 230.6 MB / 252.8 MB, free: 8.961 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.8195/0.8195, allocations: 100.3 MB / 409.1 MB, free: 4.742 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.00247/0.00247, allocations: 82.27 kB / 0.5582 GB, free: 35.92 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.1519, allocations: 74.43 MB / 0.6309 GB, free: 9.16 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03496/0.1869, allocations: 31.21 MB / 0.6613 GB, free: 9.824 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01235/0.1992, allocations: 9.754 MB / 0.6709 GB, free: 44 kB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009833/0.2002, allocations: 55.61 kB / 0.6709 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001488/0.2017, allocations: 0.5278 MB / 0.6714 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.002266/0.204, allocations: 0.8113 MB / 0.6722 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001819/0.2058, allocations: 0.7002 MB / 0.6729 GB, free: 13.94 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.001872/0.2076, allocations: 1.497 MB / 0.6744 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004043/0.2081, allocations: 197.7 kB / 0.6746 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001092/0.2091, allocations: 0.6459 MB / 0.6752 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006682/0.2098, allocations: 0.5403 MB / 0.6757 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001241/0.2099, allocations: 80 kB / 0.6758 GB, free: 10.96 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001513/0.2114, allocations: 0.519 MB / 0.6763 GB, free: 10.44 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002312/0.2117, allocations: 203.1 kB / 0.6765 GB, free: 10.24 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0005573/0.2122, allocations: 0.5207 MB / 0.677 GB, free: 9.719 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002315/0.2146, allocations: 1.405 MB / 0.6784 GB, free: 8.309 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.2146, allocations: 0 / 0.6784 GB, free: 8.309 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.284e-06/0.2146, allocations: 0 / 0.6784 GB, free: 8.309 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.274e-05/0.2146, allocations: 0 / 0.6784 GB, free: 8.309 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.002794/0.2174, allocations: 1.458 MB / 0.6798 GB, free: 6.793 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.582e-05/0.2174, allocations: 12.03 kB / 0.6798 GB, free: 6.781 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001649/0.2176, allocations: 114.7 kB / 0.6799 GB, free: 6.66 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003012/0.2179, allocations: 128.2 kB / 0.68 GB, free: 6.535 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001295/0.2192, allocations: 0.767 MB / 0.6808 GB, free: 5.727 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.45e-05/0.2193, allocations: 54 kB / 0.6808 GB, free: 5.672 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001314/0.2194, allocations: 80 kB / 0.6809 GB, free: 5.594 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.2208, allocations: 0.7877 MB / 0.6817 GB, free: 4.789 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.362e-05/0.2209, allocations: 7.938 kB / 0.6817 GB, free: 4.781 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.279e-05/0.2209, allocations: 32 kB / 0.6817 GB, free: 4.75 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.3e-05/0.221, allocations: 20 kB / 0.6817 GB, free: 4.73 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001355/0.2223, allocations: 0.6208 MB / 0.6823 GB, free: 4.109 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005184/0.2275, allocations: 3.723 MB / 0.686 GB, free: 20 kB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00117/0.2287, allocations: 0.5421 MB / 0.6865 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004978/0.2292, allocations: 255.5 kB / 0.6868 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003173/0.2324, allocations: 2.539 MB / 0.6892 GB, free: 12.3 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007368/0.2331, allocations: 369.8 kB / 0.6896 GB, free: 11.91 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=63): time 2.064e-06/0.2331, allocations: 0 / 0.6896 GB, free: 11.91 MB / 0.5294 GB Notification: Performance of matching and sorting (n=65): time 0.004155/0.2372, allocations: 1.96 MB / 0.6915 GB, free: 9.863 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.141e-05/0.2373, allocations: 81.67 kB / 0.6916 GB, free: 9.766 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008269/0.2381, allocations: 0.6337 MB / 0.6922 GB, free: 9.121 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 6.445e-05/0.2382, allocations: 45.69 kB / 0.6922 GB, free: 9.07 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003812/0.2386, allocations: 444.6 kB / 0.6927 GB, free: 8.629 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002036/0.2388, allocations: 242 kB / 0.6929 GB, free: 8.391 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002022/0.239, allocations: 114.3 kB / 0.693 GB, free: 8.273 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001547/0.2391, allocations: 334 kB / 0.6933 GB, free: 7.941 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004516/0.2396, allocations: 209.5 kB / 0.6935 GB, free: 7.738 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005541/0.2402, allocations: 331.4 kB / 0.6938 GB, free: 7.375 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00104/0.2412, allocations: 0.5536 MB / 0.6944 GB, free: 6.789 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.2412, allocations: 7.938 kB / 0.6944 GB, free: 6.781 MB / 0.5294 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001604/0.2428, allocations: 0.8037 MB / 0.6952 GB, free: 5.961 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.964e-05/0.2429, allocations: 37.69 kB / 0.6952 GB, free: 5.918 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/0.2429, allocations: 0 / 0.6952 GB, free: 5.918 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003892/0.2432, allocations: 104.7 kB / 0.6953 GB, free: 5.812 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005082/0.2438, allocations: 127.9 kB / 0.6954 GB, free: 5.688 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002295/0.2461, allocations: 1.985 MB / 0.6974 GB, free: 3.559 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003927/0.2464, allocations: 27.98 kB / 0.6974 GB, free: 3.531 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-05/0.2465, allocations: 27.98 kB / 0.6974 GB, free: 3.504 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.0003757/0.2469, allocations: 225.8 kB / 0.6976 GB, free: 3.273 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001431/0.247, allocations: 95.33 kB / 0.6977 GB, free: 3.18 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001784/0.2488, allocations: 0.8466 MB / 0.6986 GB, free: 2.309 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.2488, allocations: 8 kB / 0.6986 GB, free: 2.301 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.024e-06/0.2488, allocations: 4 kB / 0.6986 GB, free: 2.297 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.2488, allocations: 3.984 kB / 0.6986 GB, free: 2.293 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002712/0.2515, allocations: 1.613 MB / 0.7001 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.2516, allocations: 0 / 0.7001 GB, free: 0.6094 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000474/0.252, allocations: 107.9 kB / 0.7002 GB, free: 0.5039 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003369/0.2524, allocations: 116.7 kB / 0.7004 GB, free: 396 kB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.881e-05/0.2524, allocations: 19.98 kB / 0.7004 GB, free: 376 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002188/0.2546, allocations: 1.973 MB / 0.7023 GB, free: 14.25 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.2546, allocations: 11.95 kB / 0.7023 GB, free: 14.24 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001946/0.2566, allocations: 1.074 MB / 0.7034 GB, free: 13.14 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002791/0.2568, allocations: 208.5 kB / 0.7036 GB, free: 12.92 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.202e-05/0.2569, allocations: 15.98 kB / 0.7036 GB, free: 12.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003986/0.2573, allocations: 35.92 kB / 0.7036 GB, free: 12.87 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001255/0.2574, allocations: 52.48 kB / 0.7037 GB, free: 12.81 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-05/0.2575, allocations: 27.98 kB / 0.7037 GB, free: 12.79 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0005881/0.2581, allocations: 455 kB / 0.7041 GB, free: 12.35 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.2581, allocations: 0 / 0.7041 GB, free: 12.35 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0008636/0.259, allocations: 279.7 kB / 0.7044 GB, free: 12.07 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.002803/0.2618, allocations: 1.88 MB / 0.7062 GB, free: 10.16 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001561/0.2633, allocations: 0.7482 MB / 0.707 GB, free: 9.383 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.2633, allocations: 0 / 0.707 GB, free: 9.383 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.000853/0.2642, allocations: 441.6 kB / 0.7074 GB, free: 8.934 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.2653, allocations: 243.5 kB / 0.7076 GB, free: 8.699 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01025/0.2755, allocations: 6.627 MB / 0.7141 GB, free: 1.863 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007122/0.2763, allocations: 1.001 MB / 0.7151 GB, free: 0.8359 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0005189/0.2768, allocations: 145.9 kB / 0.7152 GB, free: 0.6914 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005402/0.2773, allocations: 371.3 kB / 0.7156 GB, free: 336 kB / 0.545 GB Notification: Performance of SimCode: time 8.82e-07/0.2773, allocations: 0 / 0.7156 GB, free: 336 kB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05886/0.3362, allocations: 22.8 MB / 0.7378 GB, free: 9.766 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/12.51, allocations: 0 / 0.7378 GB, free: 9.766 MB / 0.5762 GB " [Timeout remaining time 647] (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: 16.76612647692673]