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.001415/0.001415, allocations: 92.2 kB / 20.19 MB, free: 4.355 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.00164/0.00164, allocations: 177 kB / 23.49 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 1.024/1.024, allocations: 177.1 MB / 203.8 MB, free: 5.645 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.7424/0.7424, allocations: 118.6 MB / 378.9 MB, free: 1.504 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 2.475e-06/2.475e-06, allocations: 1.375 kB / 483.6 MB, free: 8.262 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.489e-05/2.736e-05, allocations: 2.312 kB / 483.6 MB, free: 8.258 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Examples.WaterHammer): time 0.02708/0.02711, allocations: 33.34 MB / 0.5048 GB, free: 15.63 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.01133/0.03843, allocations: 9.242 MB / 0.5138 GB, free: 6.371 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001947/0.04038, allocations: 63.44 kB / 0.5139 GB, free: 6.309 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001783/0.04216, allocations: 488.2 kB / 0.5144 GB, free: 5.828 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003527/0.04569, allocations: 0.8998 MB / 0.5153 GB, free: 4.922 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002546/0.04824, allocations: 0.7433 MB / 0.516 GB, free: 4.176 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.002886/0.05112, allocations: 1.691 MB / 0.5176 GB, free: 2.473 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005015/0.05162, allocations: 182.5 kB / 0.5178 GB, free: 2.289 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001988/0.05361, allocations: 0.9427 MB / 0.5187 GB, free: 1.344 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000738/0.05435, allocations: 450.6 kB / 0.5192 GB, free: 0.9023 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001453/0.0545, allocations: 80 kB / 0.5192 GB, free: 0.8242 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001527/0.05602, allocations: 487.1 kB / 0.5197 GB, free: 356 kB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002181/0.05624, allocations: 222.9 kB / 0.5199 GB, free: 132 kB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005614/0.0568, allocations: 379 kB / 0.5203 GB, free: 15.76 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002902/0.0597, allocations: 1.195 MB / 0.5214 GB, free: 14.56 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.115e-06/0.05971, allocations: 8 kB / 0.5214 GB, free: 14.55 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.955e-06/0.05972, allocations: 0 / 0.5214 GB, free: 14.55 MB / 458.7 MB Notification: Performance of Transformations before backend: time 3.003e-05/0.05975, allocations: 0 / 0.5214 GB, free: 14.55 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.002777/0.06252, allocations: 1.552 MB / 0.523 GB, free: 12.95 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.142e-05/0.06257, allocations: 12.03 kB / 0.523 GB, free: 12.93 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005021/0.06308, allocations: 208 kB / 0.5232 GB, free: 12.73 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001411/0.06449, allocations: 0.7985 MB / 0.5239 GB, free: 11.89 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.463e-05/0.06455, allocations: 58.38 kB / 0.524 GB, free: 11.84 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001394/0.06469, allocations: 92.31 kB / 0.5241 GB, free: 11.75 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001325/0.06602, allocations: 0.8045 MB / 0.5249 GB, free: 10.87 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.612e-05/0.06604, allocations: 11.92 kB / 0.5249 GB, free: 10.86 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.305e-05/0.06612, allocations: 32 kB / 0.5249 GB, free: 10.82 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.208e-05/0.06614, allocations: 16 kB / 0.5249 GB, free: 10.81 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008163/0.06695, allocations: 327.7 kB / 0.5252 GB, free: 10.49 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003812/0.07077, allocations: 2.367 MB / 0.5276 GB, free: 8.062 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000933/0.0717, allocations: 435.7 kB / 0.528 GB, free: 7.629 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002958/0.07199, allocations: 158.9 kB / 0.5281 GB, free: 7.473 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001293/0.07329, allocations: 0.9478 MB / 0.5291 GB, free: 6.504 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004564/0.07374, allocations: 470 kB / 0.5295 GB, free: 5.977 MB / 458.7 MB Notification: Performance of pre-optimization done (n=63): time 2.084e-06/0.07375, allocations: 0 / 0.5295 GB, free: 5.977 MB / 458.7 MB Notification: Performance of matching and sorting (n=65): time 0.002728/0.07647, allocations: 1.478 MB / 0.5309 GB, free: 4.453 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.288e-05/0.07654, allocations: 115.4 kB / 0.5311 GB, free: 4.316 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006907/0.07723, allocations: 0.6752 MB / 0.5317 GB, free: 3.625 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.655e-05/0.07727, allocations: 41.7 kB / 0.5318 GB, free: 3.578 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004304/0.0777, allocations: 0.511 MB / 0.5323 GB, free: 3.059 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001625/0.07787, allocations: 234 kB / 0.5325 GB, free: 2.828 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001702/0.07804, allocations: 132.3 kB / 0.5326 GB, free: 2.691 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.07818, allocations: 0.5004 MB / 0.5331 GB, free: 2.184 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002437/0.07842, allocations: 131.6 kB / 0.5332 GB, free: 2.047 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003887/0.07881, allocations: 430 kB / 0.5336 GB, free: 1.527 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005796/0.07939, allocations: 426.8 kB / 0.534 GB, free: 1.059 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.07939, allocations: 4 kB / 0.534 GB, free: 1.055 MB / 458.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001007/0.0804, allocations: 0.6674 MB / 0.5347 GB, free: 372 kB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.736e-05/0.08043, allocations: 37.64 kB / 0.5347 GB, free: 328 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.08044, allocations: 4 kB / 0.5347 GB, free: 324 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003743/0.08082, allocations: 99.62 kB / 0.5348 GB, free: 220 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003661/0.08118, allocations: 127.8 kB / 0.5349 GB, free: 92 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001896/0.08308, allocations: 2.103 MB / 0.537 GB, free: 13.87 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003106/0.08339, allocations: 27.98 kB / 0.537 GB, free: 13.84 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.366e-05/0.08344, allocations: 27.98 kB / 0.5371 GB, free: 13.81 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.0002794/0.08372, allocations: 204.4 kB / 0.5372 GB, free: 13.6 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00014/0.08386, allocations: 123.3 kB / 0.5374 GB, free: 13.48 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001076/0.08494, allocations: 0.6524 MB / 0.538 GB, free: 12.81 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.08495, allocations: 11.94 kB / 0.538 GB, free: 12.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.08495, allocations: 7.984 kB / 0.538 GB, free: 12.79 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.08496, allocations: 0 / 0.538 GB, free: 12.79 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001747/0.08671, allocations: 1.227 MB / 0.5392 GB, free: 11.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.157e-06/0.08671, allocations: 4 kB / 0.5392 GB, free: 11.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003242/0.08703, allocations: 107.8 kB / 0.5393 GB, free: 11.39 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003148/0.08735, allocations: 99.62 kB / 0.5394 GB, free: 11.29 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.378e-05/0.08739, allocations: 23.98 kB / 0.5394 GB, free: 11.27 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001558/0.08895, allocations: 2.1 MB / 0.5415 GB, free: 9.039 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.08895, allocations: 4 kB / 0.5415 GB, free: 9.035 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001169/0.09012, allocations: 0.8139 MB / 0.5423 GB, free: 8.184 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002173/0.09034, allocations: 139.2 kB / 0.5424 GB, free: 8.047 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.087e-05/0.09042, allocations: 19.98 kB / 0.5424 GB, free: 8.027 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002722/0.09069, allocations: 19.98 kB / 0.5425 GB, free: 8.008 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001293/0.09082, allocations: 56.34 kB / 0.5425 GB, free: 7.949 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.545e-05/0.09087, allocations: 31.91 kB / 0.5425 GB, free: 7.918 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004682/0.09134, allocations: 450.9 kB / 0.543 GB, free: 7.484 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.09134, allocations: 0 / 0.543 GB, free: 7.484 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0008638/0.0922, allocations: 291.7 kB / 0.5433 GB, free: 7.199 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.0005052/0.0927, allocations: 345.7 kB / 0.5436 GB, free: 6.855 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.09378, allocations: 0.6642 MB / 0.5442 GB, free: 6.16 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.09378, allocations: 0 / 0.5442 GB, free: 6.16 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005306/0.09431, allocations: 433.3 kB / 0.5446 GB, free: 5.715 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001111/0.09542, allocations: 328.2 kB / 0.545 GB, free: 5.41 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003344/0.09877, allocations: 1.719 MB / 0.5466 GB, free: 3.637 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001683/0.09894, allocations: 187.8 kB / 0.5468 GB, free: 3.434 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0004602/0.0994, allocations: 145.5 kB / 0.547 GB, free: 3.293 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001645/0.09956, allocations: 84.47 kB / 0.547 GB, free: 3.211 MB / 474.7 MB Notification: Performance of SimCode: time 1.583e-06/0.09956, allocations: 4 kB / 0.547 GB, free: 3.207 MB / 474.7 MB Notification: Performance of Templates: time 0.02517/0.1247, allocations: 15.76 MB / 0.5624 GB, free: 3.781 MB / 490.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: 4.2828927838709205]