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.001657/0.001657, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001831/0.001831, allocations: 213.9 kB / 22.99 MB, free: 4.945 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.438/1.438, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.7286/0.7286, allocations: 94.63 MB / 407.8 MB, free: 8.828 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.002532/0.002532, allocations: 88.05 kB / 0.5561 GB, free: 38.25 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1248, allocations: 73.06 MB / 0.6275 GB, free: 15.67 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03564/0.1604, allocations: 28.62 MB / 0.6554 GB, free: 2.938 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0125/0.1729, allocations: 8.917 MB / 0.6642 GB, free: 9.996 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008968/0.1738, allocations: 47.56 kB / 0.6642 GB, free: 9.949 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001394/0.1752, allocations: 476.8 kB / 0.6647 GB, free: 9.48 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002402/0.1776, allocations: 0.8191 MB / 0.6655 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001945/0.1796, allocations: 0.6842 MB / 0.6661 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002236/0.1818, allocations: 1.505 MB / 0.6676 GB, free: 6.461 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004209/0.1822, allocations: 186.2 kB / 0.6678 GB, free: 6.262 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001234/0.1835, allocations: 0.646 MB / 0.6684 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008131/0.1843, allocations: 0.5012 MB / 0.6689 GB, free: 5.109 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.000149/0.1844, allocations: 80 kB / 0.669 GB, free: 5.031 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001205/0.1856, allocations: 475.6 kB / 0.6694 GB, free: 4.566 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002235/0.1859, allocations: 207 kB / 0.6696 GB, free: 4.363 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004846/0.1863, allocations: 433.8 kB / 0.67 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001994/0.1883, allocations: 1.393 MB / 0.6714 GB, free: 2.539 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.1883, allocations: 8 kB / 0.6714 GB, free: 2.531 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.283e-06/0.1883, allocations: 0 / 0.6714 GB, free: 2.531 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.237e-05/0.1884, allocations: 0 / 0.6714 GB, free: 2.531 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.002574/0.1909, allocations: 1.383 MB / 0.6728 GB, free: 1.105 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.191, allocations: 12.03 kB / 0.6728 GB, free: 1.094 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003328/0.1913, allocations: 136.1 kB / 0.6729 GB, free: 0.9609 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001312/0.1926, allocations: 0.66 MB / 0.6735 GB, free: 280 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.944e-05/0.1927, allocations: 58 kB / 0.6736 GB, free: 224 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001302/0.1928, allocations: 83.94 kB / 0.6737 GB, free: 140 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001518/0.1943, allocations: 0.9962 MB / 0.6746 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.14e-05/0.1943, allocations: 0 / 0.6746 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.103e-05/0.1944, allocations: 32 kB / 0.6747 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.705e-05/0.1944, allocations: 16 kB / 0.6747 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00122/0.1957, allocations: 0.6363 MB / 0.6753 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00386/0.1995, allocations: 2.155 MB / 0.6774 GB, free: 12.19 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001162/0.2007, allocations: 0.5529 MB / 0.678 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004888/0.2012, allocations: 248.7 kB / 0.6782 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002112/0.2033, allocations: 0.9909 MB / 0.6792 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008204/0.2041, allocations: 0.5428 MB / 0.6797 GB, free: 9.762 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=63): time 2.365e-06/0.2041, allocations: 0 / 0.6797 GB, free: 9.762 MB / 0.5137 GB Notification: Performance of matching and sorting (n=65): time 0.003985/0.2081, allocations: 1.846 MB / 0.6815 GB, free: 7.879 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.803e-05/0.2082, allocations: 119.4 kB / 0.6816 GB, free: 7.738 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007585/0.2089, allocations: 0.6061 MB / 0.6822 GB, free: 7.129 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.035e-05/0.209, allocations: 45.69 kB / 0.6822 GB, free: 7.078 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.000381/0.2094, allocations: 440.6 kB / 0.6827 GB, free: 6.641 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.000203/0.2096, allocations: 238 kB / 0.6829 GB, free: 6.406 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001952/0.2098, allocations: 118.3 kB / 0.683 GB, free: 6.285 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001594/0.2099, allocations: 334 kB / 0.6833 GB, free: 5.953 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004689/0.2104, allocations: 239.2 kB / 0.6835 GB, free: 5.715 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000615/0.211, allocations: 405.4 kB / 0.6839 GB, free: 5.258 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001051/0.2121, allocations: 0.5703 MB / 0.6845 GB, free: 4.648 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.2121, allocations: 7.938 kB / 0.6845 GB, free: 4.641 MB / 0.5137 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001582/0.2137, allocations: 0.8325 MB / 0.6853 GB, free: 3.785 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 5.501e-05/0.2137, allocations: 33.7 kB / 0.6853 GB, free: 3.746 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.2137, allocations: 0 / 0.6853 GB, free: 3.746 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003768/0.2141, allocations: 105 kB / 0.6854 GB, free: 3.641 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005204/0.2146, allocations: 127.8 kB / 0.6856 GB, free: 3.516 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002221/0.2168, allocations: 1.831 MB / 0.6874 GB, free: 1.582 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003961/0.2172, allocations: 27.98 kB / 0.6874 GB, free: 1.555 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.423e-05/0.2173, allocations: 31.98 kB / 0.6874 GB, free: 1.523 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.0003674/0.2177, allocations: 217.7 kB / 0.6876 GB, free: 1.301 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001308/0.2178, allocations: 87.44 kB / 0.6877 GB, free: 1.215 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001696/0.2195, allocations: 0.829 MB / 0.6885 GB, free: 368 kB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.2195, allocations: 8 kB / 0.6885 GB, free: 360 kB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.2195, allocations: 0 / 0.6885 GB, free: 360 kB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.2195, allocations: 7.984 kB / 0.6885 GB, free: 352 kB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002494/0.222, allocations: 1.373 MB / 0.6899 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.222, allocations: 4 kB / 0.6899 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004564/0.2225, allocations: 115.9 kB / 0.69 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003114/0.2228, allocations: 96.75 kB / 0.6901 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.843e-05/0.2228, allocations: 23.98 kB / 0.6901 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002146/0.225, allocations: 1.84 MB / 0.6919 GB, free: 12.74 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.225, allocations: 0 / 0.6919 GB, free: 12.74 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001955/0.2269, allocations: 1.068 MB / 0.6929 GB, free: 11.64 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002852/0.2272, allocations: 127.5 kB / 0.6931 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.432e-05/0.2273, allocations: 27.92 kB / 0.6931 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003928/0.2277, allocations: 23.98 kB / 0.6931 GB, free: 11.46 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.2278, allocations: 60.39 kB / 0.6932 GB, free: 11.41 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.434e-05/0.2279, allocations: 27.92 kB / 0.6932 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0005436/0.2284, allocations: 431 kB / 0.6936 GB, free: 10.96 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7e-08/0.2284, allocations: 0 / 0.6936 GB, free: 10.96 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008081/0.2292, allocations: 271.7 kB / 0.6939 GB, free: 10.7 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.0005175/0.2298, allocations: 342.8 kB / 0.6942 GB, free: 10.35 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001511/0.2313, allocations: 0.7697 MB / 0.6949 GB, free: 9.551 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.2313, allocations: 0 / 0.6949 GB, free: 9.551 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008267/0.2321, allocations: 441.6 kB / 0.6954 GB, free: 9.109 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/0.2331, allocations: 230.2 kB / 0.6956 GB, free: 8.898 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003207/0.2363, allocations: 1.847 MB / 0.6974 GB, free: 7.008 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000439/0.2368, allocations: 420 kB / 0.6978 GB, free: 6.566 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002161/0.237, allocations: 75.41 kB / 0.6979 GB, free: 6.492 MB / 0.5294 GB Notification: Performance of SimCode: time 5.81e-07/0.237, allocations: 4 kB / 0.6979 GB, free: 6.488 MB / 0.5294 GB Notification: Performance of Templates: time 0.02438/0.2614, allocations: 17.6 MB / 0.7151 GB, free: 4.918 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/jenkins1/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: 9.599359174724668]