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.001142/0.001142, 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.001494/0.001494, allocations: 173.4 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.9659/0.9659, allocations: 177.1 MB / 203.8 MB, free: 5.488 MB / 186.7 MB " [Timeout remaining time 179] 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.6777/0.6777, allocations: 118.6 MB / 378.9 MB, free: 1.332 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.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: Performance of FrontEnd - loaded program: time 1.362e-06/1.362e-06, allocations: 0 / 430.8 MB, free: 13.32 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.465e-05/1.601e-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.007544/0.00756, allocations: 9.353 MB / 440.2 MB, free: 3.914 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003172/0.01073, allocations: 2.527 MB / 442.7 MB, free: 1.379 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004056/0.01114, allocations: 63.44 kB / 442.8 MB, free: 1.316 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004032/0.01154, allocations: 218 kB / 443 MB, free: 1.102 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001047/0.01259, allocations: 0.7018 MB / 443.7 MB, free: 404 kB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1691/0.1817, allocations: 0.4969 MB / 444.2 MB, free: 17.67 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001808/0.1835, allocations: 1.686 MB / 445.9 MB, free: 17.29 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003267/0.1838, allocations: 194.1 kB / 446.1 MB, free: 17.23 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001166/0.185, allocations: 0.9025 MB / 447 MB, free: 17.14 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005873/0.1856, allocations: 430.8 kB / 447.4 MB, free: 17.08 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001371/0.1857, allocations: 83.22 kB / 447.5 MB, free: 17.08 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004354/0.1861, allocations: 214.6 kB / 447.7 MB, free: 17.07 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001391/0.1863, allocations: 216.8 kB / 447.9 MB, free: 17.02 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003513/0.1866, allocations: 375.7 kB / 448.2 MB, free: 16.98 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001069/0.1877, allocations: 1.002 MB / 449.2 MB, free: 16.84 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.1877, allocations: 0.6875 kB / 449.2 MB, free: 16.84 MB / 410.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1877, allocations: 0 / 449.2 MB, free: 16.84 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.49e-05/0.1877, allocations: 0.6875 kB / 449.2 MB, free: 16.84 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.001541/0.1893, allocations: 1.389 MB / 450.6 MB, free: 16.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.842e-05/0.1893, allocations: 9.625 kB / 450.6 MB, free: 16.12 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002957/0.1896, allocations: 161.1 kB / 450.8 MB, free: 16.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008646/0.1904, allocations: 0.7012 MB / 451.5 MB, free: 15.79 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.857e-05/0.1905, allocations: 60.69 kB / 451.6 MB, free: 15.79 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.414e-05/0.1906, allocations: 83.23 kB / 451.6 MB, free: 15.79 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006429/0.1912, allocations: 0.754 MB / 452.4 MB, free: 15.44 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.1912, allocations: 2.562 kB / 452.4 MB, free: 15.44 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.828e-05/0.1913, allocations: 34.98 kB / 452.4 MB, free: 15.43 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.377e-05/0.1913, allocations: 19.97 kB / 452.5 MB, free: 15.43 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003407/0.1916, allocations: 248.8 kB / 452.7 MB, free: 15.41 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001834/0.1935, allocations: 1.664 MB / 454.4 MB, free: 14.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004199/0.1939, allocations: 379.8 kB / 454.7 MB, free: 14.74 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001352/0.194, allocations: 120.1 kB / 454.9 MB, free: 14.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008447/0.1949, allocations: 0.6655 MB / 455.5 MB, free: 14.49 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002357/0.1951, allocations: 424.7 kB / 455.9 MB, free: 14.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=58): time 1.593e-06/0.1951, allocations: 0.75 kB / 455.9 MB, free: 14.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=60): time 0.001146/0.1962, allocations: 0.9063 MB / 456.8 MB, free: 13.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.691e-05/0.1963, allocations: 121.9 kB / 457 MB, free: 13.82 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002905/0.1966, allocations: 0.6072 MB / 457.6 MB, free: 13.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.056e-05/0.1966, allocations: 36.7 kB / 457.6 MB, free: 13.66 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.1967, allocations: 364.3 kB / 458 MB, free: 13.46 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.947e-05/0.1968, allocations: 220.3 kB / 458.2 MB, free: 13.32 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.667e-05/0.1969, allocations: 120 kB / 458.3 MB, free: 13.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.128e-05/0.1969, allocations: 331.7 kB / 458.6 MB, free: 12.99 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.519e-05/0.197, allocations: 91.8 kB / 458.7 MB, free: 12.96 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001254/0.1971, allocations: 332.2 kB / 459 MB, free: 12.67 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000221/0.1973, allocations: 332 kB / 459.4 MB, free: 12.53 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1973, allocations: 3.969 kB / 459.4 MB, free: 12.53 MB / 410.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0004059/0.1977, allocations: 455.7 kB / 459.8 MB, free: 12.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.1978, allocations: 38.77 kB / 459.8 MB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.1978, allocations: 3.406 kB / 459.8 MB, free: 12.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002178/0.198, allocations: 84 kB / 459.9 MB, free: 12.37 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000256/0.1982, allocations: 132.4 kB / 460.1 MB, free: 12.37 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007383/0.199, allocations: 1.461 MB / 461.5 MB, free: 11.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001988/0.1992, allocations: 30.95 kB / 461.5 MB, free: 11.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.231e-05/0.1992, allocations: 26.19 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.0001268/0.1993, allocations: 158.5 kB / 461.7 MB, free: 11.09 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.3e-05/0.1994, allocations: 76.27 kB / 461.8 MB, free: 11.04 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004625/0.1999, allocations: 492.7 kB / 462.3 MB, free: 10.64 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.1999, allocations: 8 kB / 462.3 MB, free: 10.63 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.1999, allocations: 0.625 kB / 462.3 MB, free: 10.63 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.1999, allocations: 13.14 kB / 462.3 MB, free: 10.62 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000766/0.2006, allocations: 0.771 MB / 463.1 MB, free: 9.906 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.2006, allocations: 7.688 kB / 463.1 MB, free: 9.902 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002386/0.2009, allocations: 113.2 kB / 463.2 MB, free: 9.797 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001864/0.2011, allocations: 95.88 kB / 463.3 MB, free: 9.711 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.497e-05/0.2011, allocations: 16.77 kB / 463.3 MB, free: 9.695 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006374/0.2017, allocations: 1.459 MB / 464.8 MB, free: 8.184 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2017, allocations: 1.188 kB / 464.8 MB, free: 8.184 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004416/0.2022, allocations: 0.5555 MB / 465.3 MB, free: 7.629 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000114/0.2023, allocations: 88.59 kB / 465.4 MB, free: 7.543 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.148e-05/0.2023, allocations: 23.61 kB / 465.4 MB, free: 7.523 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001823/0.2025, allocations: 20.27 kB / 465.4 MB, free: 7.504 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.304e-05/0.2026, allocations: 55.25 kB / 465.5 MB, free: 7.453 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.404e-05/0.2026, allocations: 15.98 kB / 465.5 MB, free: 7.438 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001619/0.2028, allocations: 310.9 kB / 465.8 MB, free: 7.172 MB / 410.7 MB Notification: Performance of sort global known variables: time 3e-08/0.2028, allocations: 4 kB / 465.8 MB, free: 7.168 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003571/0.2031, allocations: 231.9 kB / 466 MB, free: 6.941 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.0001593/0.2033, allocations: 143.3 kB / 466.2 MB, free: 6.809 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004475/0.2037, allocations: 0.5211 MB / 466.7 MB, free: 6.273 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/0.2037, allocations: 12 kB / 466.7 MB, free: 6.262 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000244/0.204, allocations: 333.6 kB / 467 MB, free: 5.953 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006578/0.2046, allocations: 311.7 kB / 467.4 MB, free: 5.676 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001845/0.2065, allocations: 1.657 MB / 469 MB, free: 4.008 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.449e-05/0.2066, allocations: 179.6 kB / 469.2 MB, free: 3.812 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002868/0.2069, allocations: 131.4 kB / 469.3 MB, free: 3.688 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003858/0.2072, allocations: 283.1 kB / 469.6 MB, free: 3.41 MB / 410.7 MB Notification: Performance of SimCode: time 9.62e-07/0.2072, allocations: 0 / 469.6 MB, free: 3.41 MB / 410.7 MB Notification: Performance of Templates: time 0.01705/0.2243, allocations: 13.89 MB / 483.5 MB, free: 6.051 MB / 426.7 MB " [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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Examples.WaterHammer.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_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.732137408107519]