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.001264/0.001264, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001404/0.001404, allocations: 212.3 kB / 23.01 MB, free: 4.566 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.37/1.37, allocations: 230.6 MB / 256.8 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] 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.7378/0.7378, allocations: 100.3 MB / 413.5 MB, free: 3.723 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.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: 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_dev_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_dev_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.002382/0.002382, allocations: 84.97 kB / 0.5645 GB, free: 35.56 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1167/0.1191, allocations: 74.46 MB / 0.6372 GB, free: 7.211 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03315/0.1522, allocations: 31.56 MB / 0.668 GB, free: 7.523 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01185/0.1641, allocations: 9.82 MB / 0.6776 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009847/0.165, allocations: 47.56 kB / 0.6776 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001342/0.1664, allocations: 0.5395 MB / 0.6782 GB, free: 13.09 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.002221/0.1686, allocations: 0.8152 MB / 0.679 GB, free: 12.27 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.001829/0.1704, allocations: 0.7071 MB / 0.6797 GB, free: 11.56 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002004/0.1724, allocations: 1.509 MB / 0.6811 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003673/0.1728, allocations: 194.2 kB / 0.6813 GB, free: 9.836 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001079/0.1739, allocations: 0.6459 MB / 0.682 GB, free: 9.188 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007054/0.1746, allocations: 0.5365 MB / 0.6825 GB, free: 8.648 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0001234/0.1747, allocations: 80 kB / 0.6826 GB, free: 8.57 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001332/0.176, allocations: 0.5307 MB / 0.6831 GB, free: 8.039 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002045/0.1763, allocations: 207.1 kB / 0.6833 GB, free: 7.836 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0005031/0.1768, allocations: 0.5168 MB / 0.6838 GB, free: 7.316 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002155/0.1789, allocations: 1.401 MB / 0.6851 GB, free: 5.91 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1789, allocations: 0 / 0.6851 GB, free: 5.91 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.443e-06/0.1789, allocations: 4 kB / 0.6851 GB, free: 5.906 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.358e-05/0.1789, allocations: 3.938 kB / 0.6851 GB, free: 5.902 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.002501/0.1814, allocations: 1.383 MB / 0.6865 GB, free: 4.48 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.1815, allocations: 12.03 kB / 0.6865 GB, free: 4.469 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002654/0.1817, allocations: 124.2 kB / 0.6866 GB, free: 4.348 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001198/0.1829, allocations: 0.6678 MB / 0.6873 GB, free: 3.648 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.439e-05/0.183, allocations: 58 kB / 0.6873 GB, free: 3.59 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001204/0.1831, allocations: 87.98 kB / 0.6874 GB, free: 3.504 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00131/0.1844, allocations: 0.7915 MB / 0.6882 GB, free: 2.695 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.1844, allocations: 0 / 0.6882 GB, free: 2.695 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.779e-05/0.1845, allocations: 35.98 kB / 0.6882 GB, free: 2.66 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.131e-05/0.1845, allocations: 16 kB / 0.6882 GB, free: 2.645 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/0.1857, allocations: 0.648 MB / 0.6889 GB, free: 1.996 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004548/0.1902, allocations: 3.639 MB / 0.6924 GB, free: 14.01 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0011/0.1913, allocations: 0.541 MB / 0.693 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004622/0.1918, allocations: 260.8 kB / 0.6932 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002061/0.1938, allocations: 1.1 MB / 0.6943 GB, free: 12.08 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006797/0.1945, allocations: 379.2 kB / 0.6946 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=63): time 2.204e-06/0.1945, allocations: 0 / 0.6946 GB, free: 11.7 MB / 0.5294 GB Notification: Performance of matching and sorting (n=65): time 0.003649/0.1982, allocations: 1.721 MB / 0.6963 GB, free: 9.941 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.813e-05/0.1982, allocations: 93.75 kB / 0.6964 GB, free: 9.832 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007446/0.199, allocations: 0.6337 MB / 0.697 GB, free: 9.188 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 5.362e-05/0.199, allocations: 41.7 kB / 0.6971 GB, free: 9.141 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003529/0.1994, allocations: 440.6 kB / 0.6975 GB, free: 8.703 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001971/0.1996, allocations: 242 kB / 0.6977 GB, free: 8.465 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001772/0.1998, allocations: 118.3 kB / 0.6978 GB, free: 8.34 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001492/0.1999, allocations: 334 kB / 0.6982 GB, free: 8.008 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004274/0.2003, allocations: 213.5 kB / 0.6984 GB, free: 7.801 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00052/0.2009, allocations: 323.4 kB / 0.6987 GB, free: 7.449 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009486/0.2018, allocations: 0.5617 MB / 0.6992 GB, free: 6.848 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2018, allocations: 0 / 0.6992 GB, free: 6.848 MB / 0.5294 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001486/0.2033, allocations: 0.8113 MB / 0.7 GB, free: 6.02 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.783e-05/0.2033, allocations: 33.7 kB / 0.7 GB, free: 5.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.2034, allocations: 0 / 0.7 GB, free: 5.98 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003725/0.2037, allocations: 101 kB / 0.7001 GB, free: 5.879 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005005/0.2042, allocations: 135.8 kB / 0.7003 GB, free: 5.746 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002103/0.2063, allocations: 1.871 MB / 0.7021 GB, free: 3.762 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004107/0.2067, allocations: 35.98 kB / 0.7021 GB, free: 3.727 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.534e-05/0.2068, allocations: 27.94 kB / 0.7022 GB, free: 3.699 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.0003546/0.2072, allocations: 227.1 kB / 0.7024 GB, free: 3.469 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/0.2073, allocations: 95.38 kB / 0.7025 GB, free: 3.375 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001612/0.2089, allocations: 0.8604 MB / 0.7033 GB, free: 2.492 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.2089, allocations: 4 kB / 0.7033 GB, free: 2.488 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.2089, allocations: 4 kB / 0.7033 GB, free: 2.484 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.2089, allocations: 3.984 kB / 0.7033 GB, free: 2.48 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00256/0.2115, allocations: 1.576 MB / 0.7048 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.2115, allocations: 4 kB / 0.7049 GB, free: 0.8359 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004717/0.2119, allocations: 107.8 kB / 0.705 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003259/0.2123, allocations: 108.7 kB / 0.7051 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.865e-05/0.2123, allocations: 31.92 kB / 0.7051 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002037/0.2144, allocations: 1.863 MB / 0.7069 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2144, allocations: 0 / 0.7069 GB, free: 14.61 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001878/0.2162, allocations: 1.081 MB / 0.708 GB, free: 13.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003132/0.2165, allocations: 135.4 kB / 0.7081 GB, free: 13.37 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.413e-05/0.2166, allocations: 16.12 kB / 0.7081 GB, free: 13.36 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003985/0.217, allocations: 35.97 kB / 0.7081 GB, free: 13.32 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.2172, allocations: 60.33 kB / 0.7082 GB, free: 13.26 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-05/0.2172, allocations: 23.98 kB / 0.7082 GB, free: 13.24 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0005599/0.2178, allocations: 463 kB / 0.7087 GB, free: 12.79 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2178, allocations: 0 / 0.7087 GB, free: 12.79 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0008346/0.2186, allocations: 279.7 kB / 0.7089 GB, free: 12.52 MB / 0.545 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.0005654/0.2192, allocations: 370.7 kB / 0.7093 GB, free: 12.15 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001479/0.2207, allocations: 0.7446 MB / 0.71 GB, free: 11.38 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.2207, allocations: 0 / 0.71 GB, free: 11.38 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0008068/0.2215, allocations: 445.2 kB / 0.7104 GB, free: 10.93 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.2226, allocations: 246.2 kB / 0.7107 GB, free: 10.69 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003144/0.2257, allocations: 1.847 MB / 0.7125 GB, free: 8.793 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006319/0.2263, allocations: 1.013 MB / 0.7135 GB, free: 7.754 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002424/0.2266, allocations: 87.34 kB / 0.7135 GB, free: 7.668 MB / 0.545 GB Notification: Performance of SimCode: time 8.42e-07/0.2266, allocations: 0 / 0.7135 GB, free: 7.668 MB / 0.545 GB Notification: Performance of Templates: time 0.02353/0.2501, allocations: 17.56 MB / 0.7307 GB, free: 6.152 MB / 0.5606 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.makefile [Timeout 660] (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 & ./ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_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.359311401145533]