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.0009519/0.0009519, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.001222/0.001222, allocations: 177.4 kB / 23.36 MB, free: 1.129 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.9663/0.9663, allocations: 177.2 MB / 203.8 MB, free: 5.461 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.6789/0.6789, allocations: 118.6 MB / 378.9 MB, free: 1.309 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.203e-06/1.203e-06, allocations: 0 / 430.8 MB, free: 13.33 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.65e-05/2.77e-05, allocations: 9.688 kB / 430.8 MB, free: 13.32 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.008156/0.008184, allocations: 9.305 MB / 440.1 MB, free: 3.965 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003299/0.01148, allocations: 2.524 MB / 442.6 MB, free: 1.434 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005087/0.01199, allocations: 59.44 kB / 442.7 MB, free: 1.375 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004409/0.01243, allocations: 222 kB / 442.9 MB, free: 1.156 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001088/0.01352, allocations: 0.6979 MB / 443.6 MB, free: 464 kB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1785/0.192, allocations: 0.5038 MB / 444.1 MB, free: 17.72 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001838/0.1938, allocations: 1.68 MB / 445.8 MB, free: 17.34 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002983/0.1941, allocations: 200 kB / 446 MB, free: 17.29 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001068/0.1952, allocations: 0.9032 MB / 446.9 MB, free: 17.2 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005339/0.1957, allocations: 431.3 kB / 447.3 MB, free: 17.14 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001111/0.1958, allocations: 77.94 kB / 447.4 MB, free: 17.14 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003919/0.1962, allocations: 209.8 kB / 447.6 MB, free: 17.13 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001406/0.1964, allocations: 216.8 kB / 447.8 MB, free: 17.08 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003276/0.1967, allocations: 376 kB / 448.2 MB, free: 17.03 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001064/0.1978, allocations: 1.006 MB / 449.2 MB, free: 16.89 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1978, allocations: 0 / 449.2 MB, free: 16.89 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1978, allocations: 2.281 kB / 449.2 MB, free: 16.89 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.823e-05/0.1978, allocations: 1.469 kB / 449.2 MB, free: 16.89 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.001416/0.1992, allocations: 1.385 MB / 450.6 MB, free: 16.18 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.99e-05/0.1992, allocations: 9.625 kB / 450.6 MB, free: 16.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002639/0.1995, allocations: 163.9 kB / 450.7 MB, free: 16.17 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007805/0.2003, allocations: 0.7009 MB / 451.4 MB, free: 15.84 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.547e-05/0.2003, allocations: 60.52 kB / 451.5 MB, free: 15.84 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.136e-05/0.2004, allocations: 82.8 kB / 451.6 MB, free: 15.84 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006053/0.201, allocations: 0.7543 MB / 452.3 MB, free: 15.49 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.201, allocations: 3.172 kB / 452.3 MB, free: 15.49 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.991e-05/0.201, allocations: 35.53 kB / 452.4 MB, free: 15.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.2011, allocations: 17.5 kB / 452.4 MB, free: 15.48 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003103/0.2014, allocations: 244.5 kB / 452.6 MB, free: 15.46 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001765/0.2031, allocations: 1.672 MB / 454.3 MB, free: 14.82 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004106/0.2035, allocations: 378.6 kB / 454.7 MB, free: 14.8 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001255/0.2037, allocations: 121.3 kB / 454.8 MB, free: 14.79 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007945/0.2045, allocations: 0.6553 MB / 455.4 MB, free: 14.55 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002198/0.2047, allocations: 430.4 kB / 455.8 MB, free: 14.25 MB / 410.7 MB Notification: Performance of pre-optimization done (n=58): time 1.523e-06/0.2047, allocations: 1.094 kB / 455.8 MB, free: 14.25 MB / 410.7 MB Notification: Performance of matching and sorting (n=60): time 0.001106/0.2058, allocations: 0.9039 MB / 456.8 MB, free: 14.01 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.553e-05/0.2058, allocations: 112 kB / 456.9 MB, free: 13.88 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002814/0.2061, allocations: 0.614 MB / 457.5 MB, free: 13.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.975e-05/0.2061, allocations: 40.14 kB / 457.5 MB, free: 13.72 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.2062, allocations: 364.1 kB / 457.9 MB, free: 13.51 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.112e-05/0.2063, allocations: 215.8 kB / 458.1 MB, free: 13.37 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.319e-05/0.2064, allocations: 121 kB / 458.2 MB, free: 13.35 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.041e-05/0.2064, allocations: 338.2 kB / 458.5 MB, free: 13.05 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.334e-05/0.2065, allocations: 93.98 kB / 458.6 MB, free: 13.01 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001192/0.2066, allocations: 329.7 kB / 458.9 MB, free: 12.72 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000212/0.2068, allocations: 326 kB / 459.3 MB, free: 12.58 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.2068, allocations: 3.594 kB / 459.3 MB, free: 12.58 MB / 410.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.0003871/0.2072, allocations: 471 kB / 459.7 MB, free: 12.46 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.2072, allocations: 35.2 kB / 459.8 MB, free: 12.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.2073, allocations: 3.438 kB / 459.8 MB, free: 12.43 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002063/0.2075, allocations: 83.94 kB / 459.8 MB, free: 12.42 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002279/0.2077, allocations: 122.1 kB / 460 MB, free: 12.42 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006667/0.2084, allocations: 1.456 MB / 461.4 MB, free: 11.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001857/0.2085, allocations: 26.91 kB / 461.4 MB, free: 11.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.939e-05/0.2086, allocations: 25.05 kB / 461.5 MB, free: 11.29 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.0001359/0.2087, allocations: 153.5 kB / 461.6 MB, free: 11.16 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.523e-05/0.2088, allocations: 72.77 kB / 461.7 MB, free: 11.12 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004329/0.2092, allocations: 491.7 kB / 462.2 MB, free: 10.73 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.225e-06/0.2092, allocations: 8.406 kB / 462.2 MB, free: 10.73 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.2092, allocations: 4.797 kB / 462.2 MB, free: 10.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.47e-06/0.2092, allocations: 9.078 kB / 462.2 MB, free: 10.71 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007115/0.2099, allocations: 0.7715 MB / 463 MB, free: 10.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.2099, allocations: 8.688 kB / 463 MB, free: 10 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001858/0.2101, allocations: 92.78 kB / 463.1 MB, free: 9.914 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001703/0.2103, allocations: 98.08 kB / 463.2 MB, free: 9.828 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.269e-05/0.2103, allocations: 19.98 kB / 463.2 MB, free: 9.809 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005812/0.2109, allocations: 1.457 MB / 464.6 MB, free: 8.301 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2109, allocations: 1.062 kB / 464.6 MB, free: 8.301 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004159/0.2113, allocations: 0.5531 MB / 465.2 MB, free: 7.746 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001152/0.2114, allocations: 95.34 kB / 465.3 MB, free: 7.652 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.071e-05/0.2115, allocations: 12.69 kB / 465.3 MB, free: 7.641 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001721/0.2116, allocations: 30.39 kB / 465.3 MB, free: 7.617 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.606e-05/0.2117, allocations: 48.34 kB / 465.4 MB, free: 7.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-05/0.2117, allocations: 19.98 kB / 465.4 MB, free: 7.551 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001505/0.2119, allocations: 310.5 kB / 465.7 MB, free: 7.285 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2119, allocations: 0 / 465.7 MB, free: 7.285 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003339/0.2122, allocations: 235.9 kB / 465.9 MB, free: 7.055 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.0001524/0.2124, allocations: 142.7 kB / 466.1 MB, free: 6.926 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004172/0.2128, allocations: 0.5274 MB / 466.6 MB, free: 6.391 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.2128, allocations: 8 kB / 466.6 MB, free: 6.383 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002243/0.213, allocations: 327.1 kB / 466.9 MB, free: 6.07 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005977/0.2136, allocations: 317.5 kB / 467.2 MB, free: 5.789 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001638/0.2152, allocations: 1.66 MB / 468.9 MB, free: 4.121 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.772e-05/0.2153, allocations: 179.6 kB / 469.1 MB, free: 3.926 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002468/0.2156, allocations: 126.3 kB / 469.2 MB, free: 3.805 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003552/0.2159, allocations: 287.1 kB / 469.5 MB, free: 3.523 MB / 410.7 MB Notification: Performance of SimCode: time 4.01e-07/0.2159, allocations: 0 / 469.5 MB, free: 3.523 MB / 410.7 MB Notification: Performance of Templates: time 0.01502/0.2309, allocations: 13.84 MB / 483.3 MB, free: 6.211 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 -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.867701989132911]