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.00167/0.00167, allocations: 79.73 kB / 19.76 MB, free: 1.871 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.002122/0.002122, allocations: 156 kB / 23 MB, free: 4.602 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.376/1.376, allocations: 177.2 MB / 203.4 MB, free: 8.957 MB / 190.1 MB " [Timeout remaining time 179] 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.6841/0.6841, allocations: 74.91 MB / 334.7 MB, free: 15.54 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.002559/0.002559, allocations: 95.39 kB / 496.4 MB, free: 29.79 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1094, allocations: 73.03 MB / 0.556 GB, free: 15.61 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.03542/0.1448, allocations: 28.64 MB / 0.584 GB, free: 2.863 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.01217/0.157, allocations: 8.906 MB / 0.5927 GB, free: 9.934 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008307/0.1578, allocations: 55.5 kB / 0.5928 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001342/0.1592, allocations: 472.8 kB / 0.5932 GB, free: 9.414 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002251/0.1614, allocations: 0.8152 MB / 0.594 GB, free: 8.594 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001873/0.1633, allocations: 0.6951 MB / 0.5947 GB, free: 7.898 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001951/0.1653, allocations: 1.505 MB / 0.5962 GB, free: 6.383 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003802/0.1656, allocations: 178.3 kB / 0.5963 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001164/0.1668, allocations: 0.6576 MB / 0.597 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007552/0.1675, allocations: 497.4 kB / 0.5974 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.000134/0.1677, allocations: 80 kB / 0.5975 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001223/0.1689, allocations: 479.5 kB / 0.598 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002157/0.1691, allocations: 207 kB / 0.5982 GB, free: 4.297 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000513/0.1696, allocations: 433.8 kB / 0.5986 GB, free: 3.871 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002126/0.1718, allocations: 1.397 MB / 0.6 GB, free: 2.469 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1718, allocations: 4 kB / 0.6 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.563e-06/0.1718, allocations: 4 kB / 0.6 GB, free: 2.461 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.511e-05/0.1718, allocations: 0 / 0.6 GB, free: 2.461 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.002583/0.1744, allocations: 1.387 MB / 0.6013 GB, free: 1.031 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.1744, allocations: 8.031 kB / 0.6013 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003412/0.1747, allocations: 132.1 kB / 0.6014 GB, free: 0.8945 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001222/0.176, allocations: 0.6678 MB / 0.6021 GB, free: 204 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.52e-05/0.176, allocations: 54 kB / 0.6022 GB, free: 152 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001205/0.1761, allocations: 79.95 kB / 0.6022 GB, free: 72 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001544/0.1777, allocations: 1 MB / 0.6032 GB, free: 15 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.165e-05/0.1777, allocations: 0 / 0.6032 GB, free: 15 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.028e-05/0.1778, allocations: 31.98 kB / 0.6032 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.703e-05/0.1778, allocations: 16 kB / 0.6032 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001251/0.1791, allocations: 0.6402 MB / 0.6039 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00393/0.183, allocations: 2.151 MB / 0.606 GB, free: 12.12 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001162/0.1841, allocations: 0.5424 MB / 0.6065 GB, free: 11.57 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004969/0.1846, allocations: 246.7 kB / 0.6067 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002058/0.1867, allocations: 0.9909 MB / 0.6077 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008035/0.1875, allocations: 0.5428 MB / 0.6082 GB, free: 9.707 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=63): time 2.034e-06/0.1875, allocations: 0 / 0.6082 GB, free: 9.707 MB / 0.5137 GB Notification: Performance of matching and sorting (n=65): time 0.004005/0.1915, allocations: 1.85 MB / 0.61 GB, free: 7.82 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.708e-05/0.1916, allocations: 115.4 kB / 0.6102 GB, free: 7.684 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007452/0.1923, allocations: 0.6061 MB / 0.6107 GB, free: 7.074 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.108e-05/0.1924, allocations: 45.64 kB / 0.6108 GB, free: 7.023 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003716/0.1928, allocations: 440.6 kB / 0.6112 GB, free: 6.586 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001989/0.193, allocations: 238 kB / 0.6114 GB, free: 6.352 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001931/0.1932, allocations: 118.3 kB / 0.6116 GB, free: 6.23 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1933, allocations: 334 kB / 0.6119 GB, free: 5.898 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004737/0.1938, allocations: 243.2 kB / 0.6121 GB, free: 5.656 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006153/0.1944, allocations: 405.4 kB / 0.6125 GB, free: 5.195 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001031/0.1954, allocations: 0.5703 MB / 0.613 GB, free: 4.59 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.1954, allocations: 0 / 0.613 GB, free: 4.59 MB / 0.5137 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001611/0.1971, allocations: 0.8286 MB / 0.6139 GB, free: 3.738 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 4.377e-05/0.1971, allocations: 33.7 kB / 0.6139 GB, free: 3.699 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.1971, allocations: 7.984 kB / 0.6139 GB, free: 3.691 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003764/0.1975, allocations: 97.02 kB / 0.614 GB, free: 3.594 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005121/0.198, allocations: 131.8 kB / 0.6141 GB, free: 3.465 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002259/0.2003, allocations: 1.839 MB / 0.6159 GB, free: 1.523 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004359/0.2007, allocations: 27.98 kB / 0.6159 GB, free: 1.496 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.243e-05/0.2008, allocations: 27.94 kB / 0.616 GB, free: 1.469 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.0003557/0.2011, allocations: 217.7 kB / 0.6162 GB, free: 1.246 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001424/0.2013, allocations: 87.44 kB / 0.6163 GB, free: 1.16 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001709/0.203, allocations: 0.8288 MB / 0.6171 GB, free: 312 kB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.726e-05/0.203, allocations: 8 kB / 0.6171 GB, free: 304 kB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.203, allocations: 3.938 kB / 0.6171 GB, free: 300 kB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.203, allocations: 7.984 kB / 0.6171 GB, free: 292 kB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002501/0.2055, allocations: 1.377 MB / 0.6184 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.2055, allocations: 0 / 0.6184 GB, free: 14.86 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004778/0.206, allocations: 119.9 kB / 0.6185 GB, free: 14.74 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003743/0.2063, allocations: 100.7 kB / 0.6186 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.681e-05/0.2064, allocations: 19.98 kB / 0.6187 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002111/0.2085, allocations: 1.828 MB / 0.6204 GB, free: 12.69 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2085, allocations: 0 / 0.6204 GB, free: 12.69 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002036/0.2105, allocations: 1.072 MB / 0.6215 GB, free: 11.59 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003101/0.2109, allocations: 131.5 kB / 0.6216 GB, free: 11.46 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.719e-05/0.211, allocations: 16 kB / 0.6216 GB, free: 11.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000396/0.2113, allocations: 28.11 kB / 0.6217 GB, free: 11.42 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001348/0.2115, allocations: 56.39 kB / 0.6217 GB, free: 11.36 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.986e-05/0.2115, allocations: 31.92 kB / 0.6217 GB, free: 11.33 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0005658/0.2121, allocations: 435 kB / 0.6222 GB, free: 10.91 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7e-08/0.2121, allocations: 0 / 0.6222 GB, free: 10.91 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0008562/0.213, allocations: 267.7 kB / 0.6224 GB, free: 10.64 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.0005633/0.2135, allocations: 358.8 kB / 0.6228 GB, free: 10.29 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001545/0.2151, allocations: 0.7619 MB / 0.6235 GB, free: 9.496 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.2151, allocations: 0 / 0.6235 GB, free: 9.496 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0008484/0.2159, allocations: 441.2 kB / 0.6239 GB, free: 9.047 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001089/0.217, allocations: 229.1 kB / 0.6241 GB, free: 8.836 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003203/0.2202, allocations: 1.814 MB / 0.6259 GB, free: 6.984 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000452/0.2207, allocations: 420.2 kB / 0.6263 GB, free: 6.539 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0005057/0.2212, allocations: 133.6 kB / 0.6264 GB, free: 6.406 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001818/0.2214, allocations: 72.47 kB / 0.6265 GB, free: 6.336 MB / 0.5294 GB Notification: Performance of SimCode: time 7.42e-07/0.2214, allocations: 0 / 0.6265 GB, free: 6.336 MB / 0.5294 GB Notification: Performance of Templates: time 0.02588/0.2472, allocations: 13.6 MB / 0.6398 GB, free: 8.945 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 -s ida -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: 5.661368255969137]