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.0009497/0.0009497, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.001115/0.001115, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.9367/0.9367, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.663/0.663, allocations: 116 MB / 375.2 MB, free: 4.18 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.3.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: Performance of FrontEnd - loaded program: time 3.386e-06/3.386e-06, allocations: 4 kB / 0.5532 GB, free: 13.35 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.132e-05/2.471e-05, allocations: 6.281 kB / 0.5532 GB, free: 13.34 MB / 490.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.0288/0.02882, allocations: 29.65 MB / 0.5822 GB, free: 15.58 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.009474/0.0383, allocations: 8.153 MB / 0.5902 GB, free: 7.402 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001005/0.0393, allocations: 59.44 kB / 0.5902 GB, free: 7.344 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.001222/0.04053, allocations: 492.3 kB / 0.5907 GB, free: 6.859 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.002025/0.04255, allocations: 0.8921 MB / 0.5915 GB, free: 5.961 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.001746/0.0443, allocations: 0.7306 MB / 0.5923 GB, free: 5.23 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.001954/0.04625, allocations: 1.652 MB / 0.5939 GB, free: 3.566 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003898/0.04664, allocations: 182.4 kB / 0.5941 GB, free: 3.375 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001474/0.04811, allocations: 0.9154 MB / 0.5949 GB, free: 2.457 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006666/0.04878, allocations: 438.6 kB / 0.5954 GB, free: 2.027 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.000137/0.04892, allocations: 84 kB / 0.5954 GB, free: 1.945 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001183/0.0501, allocations: 479.2 kB / 0.5959 GB, free: 1.477 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0001877/0.05029, allocations: 222.9 kB / 0.5961 GB, free: 1.258 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0003688/0.05066, allocations: 367.1 kB / 0.5965 GB, free: 0.8984 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.002101/0.05276, allocations: 1.46 MB / 0.5979 GB, free: 15.43 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.05276, allocations: 0 / 0.5979 GB, free: 15.43 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.863e-06/0.05277, allocations: 0 / 0.5979 GB, free: 15.43 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.633e-05/0.05281, allocations: 3.938 kB / 0.5979 GB, free: 15.43 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 184 * Number of variables: 184 Notification: Performance of Generate backend data structure: time 0.002636/0.05545, allocations: 1.402 MB / 0.5993 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.53e-05/0.05551, allocations: 8.031 kB / 0.5993 GB, free: 13.98 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001192/0.05563, allocations: 122.7 kB / 0.5994 GB, free: 13.85 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003258/0.05596, allocations: 148.1 kB / 0.5995 GB, free: 13.7 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001127/0.05709, allocations: 0.6984 MB / 0.6002 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.109e-05/0.05714, allocations: 62.06 kB / 0.6003 GB, free: 12.92 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.307e-05/0.05723, allocations: 84 kB / 0.6003 GB, free: 12.84 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001082/0.05831, allocations: 1.005 MB / 0.6013 GB, free: 11.76 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.05833, allocations: 0 / 0.6013 GB, free: 11.76 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.497e-05/0.05837, allocations: 28 kB / 0.6014 GB, free: 11.73 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.05839, allocations: 16 kB / 0.6014 GB, free: 11.71 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007892/0.05917, allocations: 0.6363 MB / 0.602 GB, free: 11.08 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002819/0.06199, allocations: 2.318 MB / 0.6043 GB, free: 8.695 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007563/0.06275, allocations: 0.5203 MB / 0.6048 GB, free: 8.168 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002937/0.06304, allocations: 240.8 kB / 0.605 GB, free: 7.934 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001321/0.06436, allocations: 0.9479 MB / 0.6059 GB, free: 6.965 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005076/0.06487, allocations: 0.535 MB / 0.6064 GB, free: 6.367 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=63): time 1.914e-06/0.06487, allocations: 0 / 0.6064 GB, free: 6.367 MB / 0.5261 GB Notification: Performance of matching and sorting (n=65): time 0.002722/0.0676, allocations: 1.811 MB / 0.6082 GB, free: 4.52 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.827e-05/0.06765, allocations: 111.5 kB / 0.6083 GB, free: 4.387 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005617/0.06822, allocations: 0.6731 MB / 0.609 GB, free: 3.707 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.794e-05/0.06825, allocations: 37.7 kB / 0.609 GB, free: 3.664 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002419/0.0685, allocations: 464.6 kB / 0.6095 GB, free: 3.207 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.06862, allocations: 237.9 kB / 0.6097 GB, free: 2.973 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001277/0.06874, allocations: 126.7 kB / 0.6098 GB, free: 2.844 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.254e-05/0.06883, allocations: 334 kB / 0.6101 GB, free: 2.512 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002888/0.06912, allocations: 231.5 kB / 0.6103 GB, free: 2.281 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003506/0.06947, allocations: 407.7 kB / 0.6107 GB, free: 1.82 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006263/0.07009, allocations: 0.5556 MB / 0.6113 GB, free: 1.219 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.07009, allocations: 0 / 0.6113 GB, free: 1.219 MB / 0.5261 GB Notification: Performance of matching and sorting (n=84) (initialization): time 0.0009582/0.07105, allocations: 0.8207 MB / 0.6121 GB, free: 384 kB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.448e-05/0.07109, allocations: 41.58 kB / 0.6121 GB, free: 336 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.839e-06/0.0711, allocations: 8.328 kB / 0.6121 GB, free: 328 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002558/0.07135, allocations: 96.8 kB / 0.6122 GB, free: 228 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002853/0.07164, allocations: 135.8 kB / 0.6123 GB, free: 92 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00142/0.07306, allocations: 1.846 MB / 0.6141 GB, free: 14.13 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002533/0.07331, allocations: 31.92 kB / 0.6142 GB, free: 14.1 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.584e-05/0.07336, allocations: 31.98 kB / 0.6142 GB, free: 14.07 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (74): * Single equations (assignments): 72 * 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.0002722/0.07363, allocations: 217.8 kB / 0.6144 GB, free: 13.84 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.78e-05/0.07372, allocations: 99.33 kB / 0.6145 GB, free: 13.75 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00101/0.07473, allocations: 0.8103 MB / 0.6153 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.157e-06/0.07473, allocations: 4 kB / 0.6153 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.07474, allocations: 7.938 kB / 0.6153 GB, free: 12.9 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.07474, allocations: 3.984 kB / 0.6153 GB, free: 12.89 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001631/0.07637, allocations: 1.423 MB / 0.6167 GB, free: 11.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.07638, allocations: 0 / 0.6167 GB, free: 11.41 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002522/0.07663, allocations: 111.9 kB / 0.6168 GB, free: 11.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002093/0.07684, allocations: 96.77 kB / 0.6169 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.747e-05/0.07688, allocations: 28.02 kB / 0.6169 GB, free: 11.17 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001305/0.07818, allocations: 1.858 MB / 0.6187 GB, free: 9.203 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.07818, allocations: 4.062 kB / 0.6188 GB, free: 9.199 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001134/0.07932, allocations: 1.033 MB / 0.6198 GB, free: 8.141 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002006/0.07952, allocations: 143.4 kB / 0.6199 GB, free: 8 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.519e-05/0.07957, allocations: 16 kB / 0.6199 GB, free: 7.984 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002118/0.07978, allocations: 23.98 kB / 0.6199 GB, free: 7.961 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.07989, allocations: 64.27 kB / 0.62 GB, free: 7.895 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.417e-05/0.07992, allocations: 27.92 kB / 0.62 GB, free: 7.867 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0003882/0.08031, allocations: 479 kB / 0.6205 GB, free: 7.402 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6e-08/0.08031, allocations: 0 / 0.6205 GB, free: 7.402 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0006112/0.08092, allocations: 287.7 kB / 0.6208 GB, free: 7.121 MB / 0.5417 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.001639/0.08256, allocations: 1.82 MB / 0.6225 GB, free: 5.262 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0009604/0.08352, allocations: 0.7463 MB / 0.6233 GB, free: 4.484 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.08353, allocations: 0 / 0.6233 GB, free: 4.484 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0004705/0.084, allocations: 433.6 kB / 0.6237 GB, free: 4.047 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008529/0.08485, allocations: 327.5 kB / 0.624 GB, free: 3.734 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006913/0.09176, allocations: 6.731 MB / 0.6306 GB, free: 12.76 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003087/0.09207, allocations: 425.6 kB / 0.631 GB, free: 12.31 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.00045/0.09252, allocations: 146.4 kB / 0.6311 GB, free: 12.16 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003533/0.09288, allocations: 372.4 kB / 0.6315 GB, free: 11.8 MB / 0.5573 GB Notification: Performance of SimCode: time 1.694e-06/0.09288, allocations: 0 / 0.6315 GB, free: 11.8 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2815/0.3743, allocations: 26.56 MB / 0.6574 GB, free: 89.51 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.653/8.028, allocations: 6.578 kB / 0.6574 GB, free: 89.51 MB / 0.5573 GB " [Timeout remaining time 652] (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/jenkins/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] "" Variables in the reference:Time,checkValve.inlet.m_flow,firstOrder.y,pulse.T_start,pulse.count,reservoir.M,reservoir.U_med,source.outlet.m_flow Variables in the result:time,checkValve.inlet.m_flow,firstOrder.y,flowResistance.inlet.m_flow,reservoir.M,reservoir.U_med [Calling sys.exit(0), Time elapsed: 10.901151929050684]