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.0009911/0.0009911, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.001033/0.001033, allocations: 173 kB / 23.5 MB, free: 1.051 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.9891/0.9891, allocations: 177.1 MB / 203.8 MB, free: 5.66 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.6771/0.6771, allocations: 118.7 MB / 378.9 MB, free: 1.5 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 2.715e-06/2.715e-06, allocations: 0.9688 kB / 483.6 MB, free: 8.297 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.401e-05/2.672e-05, allocations: 6.312 kB / 483.6 MB, free: 8.289 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.0283/0.02833, allocations: 33.34 MB / 0.5048 GB, free: 15.66 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.008628/0.03695, allocations: 9.239 MB / 0.5139 GB, free: 6.398 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001107/0.03806, allocations: 63.44 kB / 0.5139 GB, free: 6.336 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001198/0.03926, allocations: 488.3 kB / 0.5144 GB, free: 5.855 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002058/0.04132, allocations: 0.9076 MB / 0.5153 GB, free: 4.941 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001569/0.04288, allocations: 0.7472 MB / 0.516 GB, free: 4.191 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.00192/0.0448, allocations: 1.687 MB / 0.5177 GB, free: 2.492 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003963/0.0452, allocations: 182.5 kB / 0.5178 GB, free: 2.309 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00136/0.04656, allocations: 0.9466 MB / 0.5187 GB, free: 1.359 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000506/0.04707, allocations: 442.6 kB / 0.5192 GB, free: 0.9258 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 9.919e-05/0.04717, allocations: 80 kB / 0.5192 GB, free: 0.8477 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001063/0.04823, allocations: 491.1 kB / 0.5197 GB, free: 376 kB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001612/0.04839, allocations: 215 kB / 0.5199 GB, free: 160 kB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004394/0.04883, allocations: 379 kB / 0.5203 GB, free: 15.79 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001667/0.0505, allocations: 1.203 MB / 0.5215 GB, free: 14.58 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.0505, allocations: 3.938 kB / 0.5215 GB, free: 14.57 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.0505, allocations: 4 kB / 0.5215 GB, free: 14.57 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.781e-05/0.05052, allocations: 0 / 0.5215 GB, free: 14.57 MB / 458.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.001981/0.0525, allocations: 1.552 MB / 0.523 GB, free: 12.96 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.702e-05/0.05256, allocations: 8.031 kB / 0.523 GB, free: 12.96 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004069/0.05296, allocations: 212 kB / 0.5232 GB, free: 12.75 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001065/0.05403, allocations: 0.7919 MB / 0.524 GB, free: 11.92 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.609e-05/0.05407, allocations: 58.38 kB / 0.524 GB, free: 11.86 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.05418, allocations: 84.33 kB / 0.5241 GB, free: 11.78 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009548/0.05513, allocations: 0.8083 MB / 0.5249 GB, free: 10.89 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/0.05515, allocations: 3.938 kB / 0.5249 GB, free: 10.89 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.281e-05/0.0552, allocations: 32 kB / 0.5249 GB, free: 10.86 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.903e-05/0.05522, allocations: 20 kB / 0.5249 GB, free: 10.84 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005524/0.05578, allocations: 319.7 kB / 0.5252 GB, free: 10.53 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003135/0.05891, allocations: 2.379 MB / 0.5276 GB, free: 8.09 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007284/0.05964, allocations: 429.4 kB / 0.528 GB, free: 7.664 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002363/0.05988, allocations: 158.9 kB / 0.5281 GB, free: 7.508 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001385/0.06126, allocations: 0.9555 MB / 0.5291 GB, free: 6.531 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004777/0.06174, allocations: 474 kB / 0.5295 GB, free: 6 MB / 458.7 MB Notification: Performance of pre-optimization done (n=63): time 3.256e-06/0.06174, allocations: 0 / 0.5295 GB, free: 6 MB / 458.7 MB Notification: Performance of matching and sorting (n=65): time 0.00229/0.06403, allocations: 1.478 MB / 0.531 GB, free: 4.477 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.948e-05/0.06409, allocations: 115.4 kB / 0.5311 GB, free: 4.34 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005495/0.06464, allocations: 0.6791 MB / 0.5317 GB, free: 3.645 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 3.845e-05/0.06468, allocations: 37.7 kB / 0.5318 GB, free: 3.602 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002674/0.06495, allocations: 0.5071 MB / 0.5323 GB, free: 3.086 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000129/0.06508, allocations: 238 kB / 0.5325 GB, free: 2.852 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001355/0.06521, allocations: 132.3 kB / 0.5326 GB, free: 2.715 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.06534, allocations: 0.4965 MB / 0.5331 GB, free: 2.211 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002021/0.06554, allocations: 135.6 kB / 0.5332 GB, free: 2.07 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003286/0.06587, allocations: 422 kB / 0.5336 GB, free: 1.559 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005472/0.06641, allocations: 426.8 kB / 0.534 GB, free: 1.09 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.06642, allocations: 4 kB / 0.534 GB, free: 1.086 MB / 458.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.0008032/0.06722, allocations: 0.6636 MB / 0.5347 GB, free: 408 kB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.578e-05/0.06725, allocations: 41.69 kB / 0.5347 GB, free: 360 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.06726, allocations: 4 kB / 0.5347 GB, free: 356 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003135/0.06758, allocations: 95.55 kB / 0.5348 GB, free: 256 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002907/0.06787, allocations: 135.8 kB / 0.535 GB, free: 120 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001407/0.06928, allocations: 2.096 MB / 0.537 GB, free: 13.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002379/0.06951, allocations: 27.98 kB / 0.537 GB, free: 13.87 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.422e-05/0.06956, allocations: 35.92 kB / 0.5371 GB, free: 13.84 MB / 474.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 (74): * Single equations (assignments): 72 * 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.0002043/0.06976, allocations: 196.4 kB / 0.5373 GB, free: 13.63 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.06987, allocations: 115.4 kB / 0.5374 GB, free: 13.52 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008759/0.07075, allocations: 0.6639 MB / 0.538 GB, free: 12.84 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.07076, allocations: 11.94 kB / 0.538 GB, free: 12.83 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.07076, allocations: 0 / 0.538 GB, free: 12.83 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.07077, allocations: 7.984 kB / 0.538 GB, free: 12.82 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001443/0.07221, allocations: 1.227 MB / 0.5392 GB, free: 11.53 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.07222, allocations: 0 / 0.5392 GB, free: 11.53 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002571/0.07247, allocations: 107.8 kB / 0.5393 GB, free: 11.43 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000261/0.07273, allocations: 103.6 kB / 0.5394 GB, free: 11.32 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.378e-05/0.07277, allocations: 19.98 kB / 0.5394 GB, free: 11.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001388/0.07416, allocations: 2.108 MB / 0.5415 GB, free: 9.066 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.07416, allocations: 0 / 0.5415 GB, free: 9.066 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000944/0.0751, allocations: 0.8218 MB / 0.5423 GB, free: 8.207 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001721/0.07527, allocations: 135.2 kB / 0.5424 GB, free: 8.074 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.27e-05/0.07534, allocations: 12 kB / 0.5425 GB, free: 8.062 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002021/0.07554, allocations: 23.98 kB / 0.5425 GB, free: 8.039 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.07564, allocations: 60.39 kB / 0.5425 GB, free: 7.977 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.696e-05/0.07568, allocations: 27.98 kB / 0.5426 GB, free: 7.949 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0003536/0.07603, allocations: 450.9 kB / 0.543 GB, free: 7.516 MB / 474.7 MB Notification: Performance of sort global known variables: time 4e-08/0.07603, allocations: 4 kB / 0.543 GB, free: 7.512 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0006415/0.07667, allocations: 283.7 kB / 0.5433 GB, free: 7.234 MB / 474.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 (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.0004396/0.07711, allocations: 346.6 kB / 0.5436 GB, free: 6.891 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0008484/0.07796, allocations: 0.672 MB / 0.5442 GB, free: 6.188 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.07796, allocations: 0 / 0.5442 GB, free: 6.188 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004172/0.07838, allocations: 429.2 kB / 0.5447 GB, free: 5.746 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008485/0.07923, allocations: 327.9 kB / 0.545 GB, free: 5.441 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002576/0.08181, allocations: 1.728 MB / 0.5467 GB, free: 3.66 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001404/0.08195, allocations: 187.9 kB / 0.5468 GB, free: 3.457 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0003849/0.08233, allocations: 144.7 kB / 0.547 GB, free: 3.312 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001344/0.08247, allocations: 80.47 kB / 0.5471 GB, free: 3.234 MB / 474.7 MB Notification: Performance of SimCode: time 2.314e-06/0.08247, allocations: 4 kB / 0.5471 GB, free: 3.23 MB / 474.7 MB Notification: Performance of Templates: time 0.02041/0.1029, allocations: 15.75 MB / 0.5624 GB, free: 3.812 MB / 490.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 -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: 4.097576559986919]