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.001026/0.001026, allocations: 80.94 kB / 19.94 MB, free: 4.547 MB / 18.57 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.001054/0.001054, allocations: 173 kB / 23.36 MB, free: 1.133 MB / 18.57 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 0.9603/0.9603, allocations: 177.1 MB / 203.8 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 0.6845/0.6845, allocations: 118.6 MB / 378.9 MB, free: 1.352 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.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: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 3.938 kB / 430.8 MB, free: 13.32 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.912e-05/2.054e-05, allocations: 2.312 kB / 430.8 MB, free: 13.32 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.01021/0.01023, allocations: 9.347 MB / 440.2 MB, free: 3.926 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.00285/0.01308, allocations: 2.531 MB / 442.7 MB, free: 1.387 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003469/0.01342, allocations: 59.44 kB / 442.8 MB, free: 1.328 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004254/0.01385, allocations: 218 kB / 443 MB, free: 1.113 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009313/0.01478, allocations: 0.7018 MB / 443.7 MB, free: 416 kB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1695/0.1842, allocations: 0.4962 MB / 444.2 MB, free: 17.66 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001757/0.186, allocations: 1.687 MB / 445.9 MB, free: 17.28 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003196/0.1863, allocations: 195.2 kB / 446.1 MB, free: 17.22 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001085/0.1874, allocations: 0.8992 MB / 447 MB, free: 17.14 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005361/0.1879, allocations: 435.1 kB / 447.4 MB, free: 17.08 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000111/0.188, allocations: 80 kB / 447.5 MB, free: 17.08 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004012/0.1884, allocations: 216.2 kB / 447.7 MB, free: 17.07 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001373/0.1886, allocations: 217.1 kB / 447.9 MB, free: 17.02 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003183/0.1889, allocations: 380.6 kB / 448.3 MB, free: 16.97 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000966/0.1899, allocations: 0.9949 MB / 449.3 MB, free: 16.83 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.616e-06/0.1899, allocations: 2.344 kB / 449.3 MB, free: 16.83 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1899, allocations: 0.5625 kB / 449.3 MB, free: 16.83 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.723e-05/0.1899, allocations: 0 / 449.3 MB, free: 16.83 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 184 * Number of variables: 184 Notification: Performance of Generate backend data structure: time 0.001438/0.1913, allocations: 1.39 MB / 450.6 MB, free: 16.11 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.923e-05/0.1914, allocations: 9.031 kB / 450.7 MB, free: 16.11 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000282/0.1916, allocations: 167.5 kB / 450.8 MB, free: 16.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000779/0.1924, allocations: 0.6963 MB / 451.5 MB, free: 15.79 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.321e-05/0.1925, allocations: 57.3 kB / 451.6 MB, free: 15.78 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.644e-05/0.1925, allocations: 88.56 kB / 451.7 MB, free: 15.78 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006156/0.1931, allocations: 0.7548 MB / 452.4 MB, free: 15.43 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.1932, allocations: 6.484 kB / 452.4 MB, free: 15.43 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.764e-05/0.1932, allocations: 34.09 kB / 452.5 MB, free: 15.42 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.305e-05/0.1932, allocations: 18.56 kB / 452.5 MB, free: 15.42 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003234/0.1935, allocations: 246.2 kB / 452.7 MB, free: 15.39 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001806/0.1953, allocations: 1.669 MB / 454.4 MB, free: 14.76 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003953/0.1957, allocations: 383.9 kB / 454.8 MB, free: 14.73 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001218/0.1959, allocations: 118.6 kB / 454.9 MB, free: 14.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000804/0.1967, allocations: 0.6568 MB / 455.5 MB, free: 14.48 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002364/0.1969, allocations: 428.7 kB / 455.9 MB, free: 14.19 MB / 410.7 MB Notification: Performance of pre-optimization done (n=58): time 1.603e-06/0.1969, allocations: 0 / 455.9 MB, free: 14.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=60): time 0.001152/0.1981, allocations: 0.9084 MB / 456.9 MB, free: 13.94 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.387e-05/0.1981, allocations: 113.9 kB / 457 MB, free: 13.82 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002921/0.1984, allocations: 0.6044 MB / 457.6 MB, free: 13.69 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.069e-05/0.1984, allocations: 43.08 kB / 457.6 MB, free: 13.66 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001026/0.1985, allocations: 366 kB / 458 MB, free: 13.45 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.085e-05/0.1986, allocations: 214.4 kB / 458.2 MB, free: 13.31 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.714e-05/0.1987, allocations: 123.6 kB / 458.3 MB, free: 13.29 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.925e-05/0.1987, allocations: 331.3 kB / 458.6 MB, free: 12.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.383e-05/0.1988, allocations: 90.14 kB / 458.7 MB, free: 12.95 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.1989, allocations: 339 kB / 459 MB, free: 12.66 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002258/0.1991, allocations: 325 kB / 459.4 MB, free: 12.52 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1991, allocations: 3.781 kB / 459.4 MB, free: 12.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0004009/0.1995, allocations: 460.6 kB / 459.8 MB, free: 12.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.1996, allocations: 38.27 kB / 459.9 MB, free: 12.37 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.1996, allocations: 0 / 459.9 MB, free: 12.37 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002134/0.1998, allocations: 93.08 kB / 459.9 MB, free: 12.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000255/0.2, allocations: 128.8 kB / 460.1 MB, free: 12.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007154/0.2007, allocations: 1.462 MB / 461.5 MB, free: 11.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001926/0.2009, allocations: 28.77 kB / 461.6 MB, free: 11.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.088e-05/0.201, allocations: 25.05 kB / 461.6 MB, free: 11.22 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (69): * Single equations (assignments): 67 * 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.0001252/0.2011, allocations: 152.4 kB / 461.7 MB, free: 11.09 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.265e-05/0.2012, allocations: 75.28 kB / 461.8 MB, free: 11.04 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004546/0.2016, allocations: 499.3 kB / 462.3 MB, free: 10.63 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.2016, allocations: 4.656 kB / 462.3 MB, free: 10.62 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.2016, allocations: 4 kB / 462.3 MB, free: 10.62 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.2016, allocations: 9.234 kB / 462.3 MB, free: 10.61 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007462/0.2024, allocations: 0.7754 MB / 463.1 MB, free: 9.895 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.2024, allocations: 4.688 kB / 463.1 MB, free: 9.891 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002357/0.2026, allocations: 108.8 kB / 463.2 MB, free: 9.789 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001795/0.2028, allocations: 99.5 kB / 463.3 MB, free: 9.703 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.398e-05/0.2028, allocations: 15.98 kB / 463.3 MB, free: 9.688 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006417/0.2035, allocations: 1.461 MB / 464.8 MB, free: 8.172 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.2035, allocations: 9.844 kB / 464.8 MB, free: 8.168 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000434/0.2039, allocations: 0.5448 MB / 465.3 MB, free: 7.621 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001116/0.204, allocations: 95.36 kB / 465.4 MB, free: 7.527 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.016e-05/0.204, allocations: 12.78 kB / 465.4 MB, free: 7.516 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001837/0.2042, allocations: 31.55 kB / 465.5 MB, free: 7.488 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.55e-05/0.2043, allocations: 53.66 kB / 465.5 MB, free: 7.438 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.402e-05/0.2043, allocations: 17.3 kB / 465.5 MB, free: 7.422 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001554/0.2045, allocations: 309.8 kB / 465.8 MB, free: 7.156 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2045, allocations: 0 / 465.8 MB, free: 7.156 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003416/0.2048, allocations: 227.9 kB / 466.1 MB, free: 6.934 MB / 410.7 MB 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 (49): * Single equations (assignments): 46 * 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.0001556/0.205, allocations: 150.7 kB / 466.2 MB, free: 6.793 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004289/0.2054, allocations: 0.5216 MB / 466.7 MB, free: 6.262 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.895e-06/0.2054, allocations: 8 kB / 466.7 MB, free: 6.254 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002393/0.2057, allocations: 327.9 kB / 467.1 MB, free: 5.941 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006191/0.2063, allocations: 310.3 kB / 467.4 MB, free: 5.664 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001732/0.208, allocations: 1.662 MB / 469 MB, free: 3.996 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.36e-05/0.2081, allocations: 182.5 kB / 469.2 MB, free: 3.801 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002664/0.2084, allocations: 125.2 kB / 469.3 MB, free: 3.68 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000385/0.2087, allocations: 287.1 kB / 469.6 MB, free: 3.398 MB / 410.7 MB Notification: Performance of SimCode: time 5.51e-07/0.2087, allocations: 0 / 469.6 MB, free: 3.398 MB / 410.7 MB Notification: Performance of Templates: time 0.01576/0.2245, allocations: 13.88 MB / 483.5 MB, free: 6.055 MB / 426.7 MB " [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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Examples.WaterHammer_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Examples.WaterHammer_ref.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.719168846961111]