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.001214/0.001214, allocations: 75.25 kB / 19.16 MB, free: 2.57 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.00213/0.00213, allocations: 171.7 kB / 22.44 MB, free: 5.312 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: 177.2 MB / 202.8 MB, free: 9.195 MB / 190.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.7885/0.7885, allocations: 74.89 MB / 334.1 MB, free: 0 / 302.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: translateModel(ThermofluidStream.Examples.WaterHammer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|checkValve.inlet.m_flow|firstOrder.y|pulse.T_start|pulse.count|reservoir.M|reservoir.U_med|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Examples.WaterHammer") translateModel(ThermofluidStream.Examples.WaterHammer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|checkValve.inlet.m_flow|firstOrder.y|pulse.T_start|pulse.count|reservoir.M|reservoir.U_med|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Examples.WaterHammer") [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.0036/0.0036, allocations: 93.55 kB / 496 MB, free: 29.81 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1666/0.1702, allocations: 73.03 MB / 0.5557 GB, free: 15.56 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03399/0.2042, allocations: 28.47 MB / 0.5835 GB, free: 2.98 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01333/0.2175, allocations: 8.901 MB / 0.5922 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001311/0.2188, allocations: 47.56 kB / 0.5922 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001631/0.2205, allocations: 480.4 kB / 0.5927 GB, free: 9.535 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003074/0.2235, allocations: 0.8226 MB / 0.5935 GB, free: 8.707 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002332/0.2259, allocations: 0.6947 MB / 0.5942 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002409/0.2283, allocations: 1.494 MB / 0.5956 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004436/0.2287, allocations: 186.3 kB / 0.5958 GB, free: 6.312 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001768/0.2305, allocations: 0.9034 MB / 0.5967 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007389/0.2312, allocations: 0.5013 MB / 0.5972 GB, free: 4.902 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001349/0.2314, allocations: 80 kB / 0.5972 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001473/0.2328, allocations: 483.2 kB / 0.5977 GB, free: 4.352 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002315/0.2331, allocations: 207 kB / 0.5979 GB, free: 4.148 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0005141/0.2336, allocations: 437.8 kB / 0.5983 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002583/0.2362, allocations: 1.397 MB / 0.5997 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.2362, allocations: 0 / 0.5997 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.324e-06/0.2362, allocations: 0 / 0.5997 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.074e-05/0.2362, allocations: 0 / 0.5997 GB, free: 2.316 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.003117/0.2393, allocations: 1.387 MB / 0.601 GB, free: 0.8867 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.2394, allocations: 8.031 kB / 0.601 GB, free: 0.8789 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003892/0.2397, allocations: 140.2 kB / 0.6012 GB, free: 0.7422 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001411/0.2412, allocations: 0.6639 MB / 0.6018 GB, free: 52 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.181e-05/0.2412, allocations: 58.05 kB / 0.6019 GB, free: 15.99 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001336/0.2414, allocations: 79.89 kB / 0.602 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001589/0.243, allocations: 0.9962 MB / 0.6029 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.219e-05/0.243, allocations: 4 kB / 0.6029 GB, free: 14.85 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.109e-05/0.2431, allocations: 32 kB / 0.603 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.917e-05/0.2431, allocations: 20 kB / 0.603 GB, free: 14.8 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001233/0.2443, allocations: 0.6285 MB / 0.6036 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00417/0.2485, allocations: 2.158 MB / 0.6057 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001202/0.2497, allocations: 0.5504 MB / 0.6062 GB, free: 11.41 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004869/0.2502, allocations: 246.7 kB / 0.6065 GB, free: 11.16 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002143/0.2523, allocations: 0.9987 MB / 0.6075 GB, free: 10.15 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008502/0.2532, allocations: 0.535 MB / 0.608 GB, free: 9.547 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=63): time 2.495e-06/0.2532, allocations: 0 / 0.608 GB, free: 9.547 MB / 0.5137 GB Notification: Performance of matching and sorting (n=65): time 0.004265/0.2574, allocations: 1.835 MB / 0.6098 GB, free: 7.676 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.971e-05/0.2575, allocations: 127.4 kB / 0.6099 GB, free: 7.527 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007982/0.2583, allocations: 0.6022 MB / 0.6105 GB, free: 6.922 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.486e-05/0.2584, allocations: 45.7 kB / 0.6105 GB, free: 6.871 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004109/0.2588, allocations: 448.6 kB / 0.6109 GB, free: 6.426 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002233/0.259, allocations: 234 kB / 0.6112 GB, free: 6.195 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002259/0.2592, allocations: 122.3 kB / 0.6113 GB, free: 6.07 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001762/0.2594, allocations: 329.9 kB / 0.6116 GB, free: 5.742 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004821/0.2599, allocations: 239.2 kB / 0.6118 GB, free: 5.504 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006196/0.2605, allocations: 405.4 kB / 0.6122 GB, free: 5.043 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001065/0.2616, allocations: 0.5664 MB / 0.6128 GB, free: 4.441 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.2616, allocations: 4 kB / 0.6128 GB, free: 4.438 MB / 0.5137 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001641/0.2632, allocations: 0.8364 MB / 0.6136 GB, free: 3.578 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.696e-05/0.2633, allocations: 29.7 kB / 0.6136 GB, free: 3.543 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.2633, allocations: 4 kB / 0.6136 GB, free: 3.539 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004057/0.2637, allocations: 96.78 kB / 0.6137 GB, free: 3.441 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005345/0.2642, allocations: 140 kB / 0.6138 GB, free: 3.305 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002257/0.2665, allocations: 1.831 MB / 0.6156 GB, free: 1.371 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004551/0.2669, allocations: 28.05 kB / 0.6157 GB, free: 1.344 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.266e-05/0.267, allocations: 31.98 kB / 0.6157 GB, free: 1.312 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.0004362/0.2675, allocations: 225.6 kB / 0.6159 GB, free: 1.082 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001629/0.2676, allocations: 83.44 kB / 0.616 GB, free: 1 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001837/0.2695, allocations: 0.8289 MB / 0.6168 GB, free: 148 kB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.2695, allocations: 4 kB / 0.6168 GB, free: 144 kB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.2695, allocations: 7.938 kB / 0.6168 GB, free: 136 kB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.2695, allocations: 0 / 0.6168 GB, free: 136 kB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002669/0.2721, allocations: 1.388 MB / 0.6182 GB, free: 14.69 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.2721, allocations: 0 / 0.6182 GB, free: 14.69 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005021/0.2727, allocations: 111.8 kB / 0.6183 GB, free: 14.58 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003486/0.273, allocations: 100.8 kB / 0.6184 GB, free: 14.48 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.294e-05/0.2731, allocations: 23.98 kB / 0.6184 GB, free: 14.46 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002286/0.2753, allocations: 1.828 MB / 0.6202 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.677e-06/0.2753, allocations: 8.016 kB / 0.6202 GB, free: 12.52 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002107/0.2775, allocations: 1.072 MB / 0.6212 GB, free: 11.42 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003302/0.2778, allocations: 123.5 kB / 0.6213 GB, free: 11.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.254e-05/0.2779, allocations: 16.12 kB / 0.6214 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004491/0.2783, allocations: 35.97 kB / 0.6214 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001444/0.2785, allocations: 52.67 kB / 0.6214 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.854e-05/0.2785, allocations: 27.92 kB / 0.6215 GB, free: 11.17 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0005773/0.2791, allocations: 435 kB / 0.6219 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2791, allocations: 3.938 kB / 0.6219 GB, free: 10.74 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008932/0.28, allocations: 279.7 kB / 0.6222 GB, free: 10.47 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.0005721/0.2806, allocations: 338.7 kB / 0.6225 GB, free: 10.13 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001631/0.2822, allocations: 0.7697 MB / 0.6232 GB, free: 9.332 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.2822, allocations: 7.938 kB / 0.6232 GB, free: 9.324 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008597/0.2831, allocations: 441.2 kB / 0.6237 GB, free: 8.875 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/0.2841, allocations: 211.6 kB / 0.6239 GB, free: 8.68 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003703/0.2878, allocations: 1.818 MB / 0.6256 GB, free: 6.824 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004993/0.2883, allocations: 412.2 kB / 0.626 GB, free: 6.387 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0006096/0.2889, allocations: 149.5 kB / 0.6262 GB, free: 6.238 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002025/0.2891, allocations: 72.47 kB / 0.6262 GB, free: 6.168 MB / 0.5294 GB Notification: Performance of SimCode: time 1.292e-06/0.2891, allocations: 0 / 0.6262 GB, free: 6.168 MB / 0.5294 GB Notification: Performance of Templates: time 0.02874/0.3179, allocations: 13.62 MB / 0.6395 GB, free: 8.754 MB / 0.545 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Examples.WaterHammer.makefile [Timeout 660] (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 & ./ThermofluidStream_ThermofluidStream.Examples.WaterHammer -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Examples.WaterHammer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.418888488784432]