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.001603/0.001603, 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.001821/0.001821, allocations: 212.3 kB / 22.25 MB, free: 4.859 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.423/1.423, allocations: 230.6 MB / 256 MB, free: 7.805 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.7322/0.7322, allocations: 94.63 MB / 407 MB, free: 8.871 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: 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.002666/0.002666, allocations: 90.56 kB / 0.5554 GB, free: 38 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1301/0.1328, allocations: 73.04 MB / 0.6267 GB, free: 15.66 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03775/0.1706, allocations: 28.63 MB / 0.6547 GB, free: 2.926 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01309/0.1836, allocations: 8.917 MB / 0.6634 GB, free: 9.984 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009371/0.1846, allocations: 47.56 kB / 0.6635 GB, free: 9.938 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001535/0.1861, allocations: 480.7 kB / 0.6639 GB, free: 9.465 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002678/0.1888, allocations: 0.8152 MB / 0.6647 GB, free: 8.645 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00241/0.1912, allocations: 0.6915 MB / 0.6654 GB, free: 7.953 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002517/0.1937, allocations: 1.498 MB / 0.6669 GB, free: 6.449 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004807/0.1942, allocations: 182.2 kB / 0.667 GB, free: 6.254 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001498/0.1957, allocations: 0.6499 MB / 0.6677 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009895/0.1967, allocations: 0.4974 MB / 0.6681 GB, free: 5.102 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002687/0.197, allocations: 80 kB / 0.6682 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001479/0.1984, allocations: 471.6 kB / 0.6687 GB, free: 4.562 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003113/0.1987, allocations: 211 kB / 0.6689 GB, free: 4.355 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0007143/0.1995, allocations: 437.8 kB / 0.6693 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002695/0.2022, allocations: 1.389 MB / 0.6706 GB, free: 2.531 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2022, allocations: 0 / 0.6706 GB, free: 2.531 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2022, allocations: 4 kB / 0.6707 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.904e-05/0.2022, allocations: 0 / 0.6707 GB, free: 2.527 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.003001/0.2052, allocations: 1.387 MB / 0.672 GB, free: 1.098 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.2052, allocations: 12.03 kB / 0.672 GB, free: 1.086 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003798/0.2056, allocations: 132.2 kB / 0.6721 GB, free: 0.957 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00147/0.2071, allocations: 0.6639 MB / 0.6728 GB, free: 272 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.755e-05/0.2072, allocations: 58 kB / 0.6728 GB, free: 216 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001442/0.2073, allocations: 83.94 kB / 0.6729 GB, free: 132 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001687/0.209, allocations: 1 MB / 0.6739 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.588e-05/0.209, allocations: 0 / 0.6739 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.966e-05/0.2091, allocations: 32 kB / 0.6739 GB, free: 15.03 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.145e-05/0.2091, allocations: 19.98 kB / 0.674 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001313/0.2104, allocations: 0.6363 MB / 0.6746 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004339/0.2148, allocations: 2.158 MB / 0.6767 GB, free: 12.17 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001227/0.216, allocations: 0.549 MB / 0.6772 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005133/0.2165, allocations: 252.5 kB / 0.6775 GB, free: 11.36 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002161/0.2187, allocations: 0.987 MB / 0.6784 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000824/0.2195, allocations: 0.5389 MB / 0.679 GB, free: 9.75 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=63): time 2.655e-06/0.2195, allocations: 0 / 0.679 GB, free: 9.75 MB / 0.5137 GB Notification: Performance of matching and sorting (n=65): time 0.004174/0.2237, allocations: 1.846 MB / 0.6808 GB, free: 7.867 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.778e-05/0.2238, allocations: 123.3 kB / 0.6809 GB, free: 7.723 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008226/0.2246, allocations: 0.61 MB / 0.6815 GB, free: 7.109 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 7.458e-05/0.2247, allocations: 37.7 kB / 0.6815 GB, free: 7.066 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003855/0.2251, allocations: 444.6 kB / 0.6819 GB, free: 6.625 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002192/0.2253, allocations: 234 kB / 0.6822 GB, free: 6.395 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002026/0.2255, allocations: 122.3 kB / 0.6823 GB, free: 6.27 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001564/0.2256, allocations: 334 kB / 0.6826 GB, free: 5.938 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004861/0.2261, allocations: 239.2 kB / 0.6828 GB, free: 5.699 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006203/0.2267, allocations: 405.4 kB / 0.6832 GB, free: 5.242 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001079/0.2278, allocations: 0.5664 MB / 0.6838 GB, free: 4.637 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.2278, allocations: 4 kB / 0.6838 GB, free: 4.633 MB / 0.5137 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001692/0.2295, allocations: 0.8286 MB / 0.6846 GB, free: 3.781 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.94e-05/0.2296, allocations: 33.7 kB / 0.6846 GB, free: 3.742 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.2296, allocations: 0 / 0.6846 GB, free: 3.742 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003981/0.23, allocations: 105 kB / 0.6847 GB, free: 3.637 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005234/0.2305, allocations: 131.8 kB / 0.6848 GB, free: 3.508 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002551/0.2331, allocations: 1.835 MB / 0.6866 GB, free: 1.57 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005044/0.2336, allocations: 23.98 kB / 0.6866 GB, free: 1.547 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.592e-05/0.2337, allocations: 31.98 kB / 0.6867 GB, free: 1.516 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.0004356/0.2341, allocations: 221.6 kB / 0.6869 GB, free: 1.289 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001944/0.2343, allocations: 91.42 kB / 0.687 GB, free: 1.199 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00176/0.236, allocations: 0.8212 MB / 0.6878 GB, free: 360 kB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.909e-06/0.2361, allocations: 11.94 kB / 0.6878 GB, free: 348 kB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.2361, allocations: 0 / 0.6878 GB, free: 348 kB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.405e-06/0.2361, allocations: 7.984 kB / 0.6878 GB, free: 340 kB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002675/0.2387, allocations: 1.377 MB / 0.6891 GB, free: 14.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.2387, allocations: 4 kB / 0.6891 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004791/0.2392, allocations: 115.9 kB / 0.6892 GB, free: 14.78 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003475/0.2396, allocations: 100.8 kB / 0.6893 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.824e-05/0.2396, allocations: 19.98 kB / 0.6894 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002211/0.2418, allocations: 1.832 MB / 0.6912 GB, free: 12.73 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.2418, allocations: 0 / 0.6912 GB, free: 12.73 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002044/0.2439, allocations: 1.076 MB / 0.6922 GB, free: 11.62 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000374/0.2443, allocations: 127.5 kB / 0.6923 GB, free: 11.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001233/0.2444, allocations: 15.98 kB / 0.6923 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004254/0.2448, allocations: 28.27 kB / 0.6924 GB, free: 11.46 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001444/0.245, allocations: 56.39 kB / 0.6924 GB, free: 11.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.398e-05/0.245, allocations: 39.86 kB / 0.6925 GB, free: 11.36 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0006001/0.2456, allocations: 431 kB / 0.6929 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7e-08/0.2456, allocations: 0 / 0.6929 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008849/0.2465, allocations: 275.7 kB / 0.6931 GB, free: 10.68 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.0005865/0.2471, allocations: 338.7 kB / 0.6935 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001628/0.2487, allocations: 0.7774 MB / 0.6942 GB, free: 9.527 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.2487, allocations: 0 / 0.6942 GB, free: 9.527 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008978/0.2496, allocations: 441.6 kB / 0.6946 GB, free: 9.086 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001136/0.2508, allocations: 224.9 kB / 0.6948 GB, free: 8.879 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003498/0.2543, allocations: 1.814 MB / 0.6966 GB, free: 7.027 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005059/0.2548, allocations: 416 kB / 0.697 GB, free: 6.59 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0005689/0.2553, allocations: 145.6 kB / 0.6972 GB, free: 6.445 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002014/0.2555, allocations: 75.41 kB / 0.6972 GB, free: 6.371 MB / 0.5294 GB Notification: Performance of SimCode: time 9.32e-07/0.2555, allocations: 0 / 0.6972 GB, free: 6.371 MB / 0.5294 GB Notification: Performance of Templates: time 0.02693/0.2825, allocations: 14.94 MB / 0.7118 GB, free: 7.652 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: 5.908696053549647]