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.001435/0.001435, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001672/0.001672, allocations: 217.7 kB / 22.26 MB, free: 5.125 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.468/1.468, allocations: 230.6 MB / 256 MB, free: 7.984 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.7491/0.7491, allocations: 94.56 MB / 407 MB, free: 9.203 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.002613/0.002613, allocations: 90.58 kB / 0.5554 GB, free: 38.45 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1152, allocations: 73.04 MB / 0.6268 GB, free: 16 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03748/0.1527, allocations: 31.58 MB / 0.6576 GB, free: 296 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01286/0.1655, allocations: 9.824 MB / 0.6672 GB, free: 6.438 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008076/0.1663, allocations: 51.5 kB / 0.6672 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001397/0.1677, allocations: 0.5318 MB / 0.6678 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002302/0.17, allocations: 0.8229 MB / 0.6686 GB, free: 5.023 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001856/0.1719, allocations: 0.7067 MB / 0.6693 GB, free: 4.316 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002031/0.1739, allocations: 1.509 MB / 0.6707 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004042/0.1743, allocations: 190.2 kB / 0.6709 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001175/0.1755, allocations: 0.6498 MB / 0.6715 GB, free: 1.945 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007519/0.1763, allocations: 0.5364 MB / 0.6721 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.00014/0.1764, allocations: 80 kB / 0.6721 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001433/0.1778, allocations: 0.5268 MB / 0.6727 GB, free: 0.8008 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002358/0.1781, allocations: 211.1 kB / 0.6729 GB, free: 0.5938 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0005808/0.1786, allocations: 0.5206 MB / 0.6734 GB, free: 72 kB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002252/0.1809, allocations: 1.397 MB / 0.6747 GB, free: 14.67 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1809, allocations: 4 kB / 0.6747 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of FrontEnd: time 3.777e-06/0.1809, allocations: 4 kB / 0.6747 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.621e-05/0.1809, allocations: 0 / 0.6747 GB, free: 14.66 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.002703/0.1836, allocations: 1.387 MB / 0.6761 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.1837, allocations: 8.031 kB / 0.6761 GB, free: 13.22 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002952/0.184, allocations: 124.2 kB / 0.6762 GB, free: 13.1 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001315/0.1853, allocations: 0.6756 MB / 0.6769 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.364e-05/0.1853, allocations: 58 kB / 0.6769 GB, free: 12.34 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001288/0.1855, allocations: 79.95 kB / 0.677 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001453/0.1869, allocations: 0.7993 MB / 0.6778 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.1869, allocations: 0 / 0.6778 GB, free: 11.45 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.074e-05/0.187, allocations: 32 kB / 0.6778 GB, free: 11.41 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.18e-05/0.187, allocations: 20 kB / 0.6778 GB, free: 11.39 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.1883, allocations: 0.6402 MB / 0.6785 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005069/0.1934, allocations: 3.643 MB / 0.682 GB, free: 6.758 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00121/0.1946, allocations: 0.5454 MB / 0.6826 GB, free: 6.203 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000511/0.1951, allocations: 258.7 kB / 0.6828 GB, free: 5.949 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00227/0.1974, allocations: 1.096 MB / 0.6839 GB, free: 4.836 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007317/0.1981, allocations: 371.2 kB / 0.6842 GB, free: 4.453 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=63): time 2.144e-06/0.1981, allocations: 0 / 0.6842 GB, free: 4.453 MB / 0.5137 GB Notification: Performance of matching and sorting (n=65): time 0.004022/0.2021, allocations: 1.732 MB / 0.6859 GB, free: 2.688 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.583e-05/0.2022, allocations: 81.77 kB / 0.686 GB, free: 2.59 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000836/0.203, allocations: 0.6299 MB / 0.6866 GB, free: 1.953 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.331e-05/0.2031, allocations: 41.7 kB / 0.6866 GB, free: 1.906 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003875/0.2035, allocations: 444.6 kB / 0.6871 GB, free: 1.469 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002091/0.2037, allocations: 238 kB / 0.6873 GB, free: 1.234 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002051/0.2039, allocations: 118.3 kB / 0.6874 GB, free: 1.113 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001783/0.2041, allocations: 334 kB / 0.6877 GB, free: 0.7812 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004764/0.2045, allocations: 213.5 kB / 0.6879 GB, free: 0.5742 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005759/0.2051, allocations: 323.5 kB / 0.6882 GB, free: 224 kB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/0.2062, allocations: 0.5656 MB / 0.6888 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.2062, allocations: 4 kB / 0.6888 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001654/0.2079, allocations: 0.7958 MB / 0.6896 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.485e-05/0.2079, allocations: 33.7 kB / 0.6896 GB, free: 14.76 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.2079, allocations: 0 / 0.6896 GB, free: 14.76 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004027/0.2083, allocations: 116.9 kB / 0.6897 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005638/0.2089, allocations: 131.8 kB / 0.6898 GB, free: 14.51 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002369/0.2112, allocations: 1.87 MB / 0.6917 GB, free: 12.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004669/0.2117, allocations: 32.05 kB / 0.6917 GB, free: 12.49 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.134e-05/0.2118, allocations: 27.98 kB / 0.6917 GB, free: 12.46 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.2122, allocations: 221.6 kB / 0.6919 GB, free: 12.24 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001539/0.2123, allocations: 95.39 kB / 0.692 GB, free: 12.14 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00181/0.2141, allocations: 0.8528 MB / 0.6929 GB, free: 11.27 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.031e-05/0.2141, allocations: 8 kB / 0.6929 GB, free: 11.26 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.2141, allocations: 0 / 0.6929 GB, free: 11.26 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.2141, allocations: 7.984 kB / 0.6929 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002923/0.2171, allocations: 1.58 MB / 0.6944 GB, free: 9.609 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.369e-06/0.2171, allocations: 0 / 0.6944 GB, free: 9.609 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005095/0.2176, allocations: 107.9 kB / 0.6945 GB, free: 9.504 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003707/0.218, allocations: 112.8 kB / 0.6946 GB, free: 9.391 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.228e-05/0.218, allocations: 23.92 kB / 0.6947 GB, free: 9.367 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002308/0.2203, allocations: 1.866 MB / 0.6965 GB, free: 7.387 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/0.2203, allocations: 8.031 kB / 0.6965 GB, free: 7.379 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002124/0.2224, allocations: 1.089 MB / 0.6975 GB, free: 6.262 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003345/0.2228, allocations: 135.4 kB / 0.6977 GB, free: 6.129 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001046/0.2229, allocations: 20 kB / 0.6977 GB, free: 6.109 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004246/0.2233, allocations: 23.98 kB / 0.6977 GB, free: 6.086 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001322/0.2234, allocations: 60.33 kB / 0.6978 GB, free: 6.027 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.485e-05/0.2235, allocations: 23.98 kB / 0.6978 GB, free: 6.004 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0006305/0.2241, allocations: 459 kB / 0.6982 GB, free: 5.559 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.1e-08/0.2241, allocations: 4 kB / 0.6982 GB, free: 5.555 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0009609/0.2251, allocations: 283.7 kB / 0.6985 GB, free: 5.277 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 (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.0006348/0.2257, allocations: 366.6 kB / 0.6989 GB, free: 4.91 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001624/0.2274, allocations: 0.7446 MB / 0.6996 GB, free: 4.141 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.2274, allocations: 0 / 0.6996 GB, free: 4.141 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008895/0.2282, allocations: 441.2 kB / 0.7 GB, free: 3.695 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001175/0.2294, allocations: 242.5 kB / 0.7002 GB, free: 3.469 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003384/0.2328, allocations: 1.826 MB / 0.702 GB, free: 1.598 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007041/0.2335, allocations: 1.001 MB / 0.703 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0005107/0.234, allocations: 145.9 kB / 0.7031 GB, free: 436 kB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001905/0.2342, allocations: 75.41 kB / 0.7032 GB, free: 360 kB / 0.5294 GB Notification: Performance of SimCode: time 8.32e-07/0.2342, allocations: 0 / 0.7032 GB, free: 360 kB / 0.5294 GB Notification: Performance of Templates: time 0.0277/0.2619, allocations: 14.47 MB / 0.7173 GB, free: 2.012 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.034913579002023]