Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.DHC.Plants.Cooling.Subsystems.Examples.CoolingTowersWithBypass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.DHC.Plants.Cooling.Subsystems.Examples.CoolingTowersWithBypass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tow.TWetBul|TEnt.T|tow.TLvg|tow.cooTowSpeCon.u_s|tow.cooTowSpeCon.u_m|TVol.T|TSwi.y|tow.bypValCon.u_s|tow.bypValCon.u_m|tow.bypValCon.y",fileNamePrefix="Buildings_latest_Buildings.DHC.Plants.Cooling.Subsystems.Examples.CoolingTowersWithBypass") translateModel(Buildings.DHC.Plants.Cooling.Subsystems.Examples.CoolingTowersWithBypass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tow.TWetBul|TEnt.T|tow.TLvg|tow.cooTowSpeCon.u_s|tow.cooTowSpeCon.u_m|TVol.T|TSwi.y|tow.bypValCon.u_s|tow.bypValCon.u_m|tow.bypValCon.y",fileNamePrefix="Buildings_latest_Buildings.DHC.Plants.Cooling.Subsystems.Examples.CoolingTowersWithBypass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001751/0.001751, allocations: 109.7 kB / 16.42 MB, free: 6.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002053/0.002053, allocations: 187.9 kB / 17.35 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.581/1.581, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.118/3.118, allocations: 469.4 MB / 0.7428 GB, free: 3.488 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 59.84 kB / 1.066 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9848/0.9863, allocations: 159.1 MB / 1.221 GB, free: 2.301 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Subsystems.Examples.CoolingTowersWithBypass): time 0.293/1.279, allocations: 273.7 MB / 1.488 GB, free: 15.66 MB / 1.217 GB Notification: Performance of NFInst.instExpressions: time 0.05398/1.333, allocations: 36.25 MB / 1.524 GB, free: 11.31 MB / 1.248 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.009229/1.343, allocations: 163.1 kB / 1.524 GB, free: 11.15 MB / 1.248 GB Notification: Performance of NFTyping.typeComponents: time 0.008962/1.352, allocations: 2.881 MB / 1.527 GB, free: 8.254 MB / 1.248 GB Notification: Performance of NFTyping.typeBindings: time 0.01965/1.371, allocations: 6.16 MB / 1.533 GB, free: 2.078 MB / 1.248 GB Notification: Performance of NFTyping.typeClassSections: time 0.01343/1.385, allocations: 4.498 MB / 1.537 GB, free: 13.61 MB / 1.264 GB Notification: Performance of NFFlatten.flatten: time 0.02852/1.413, allocations: 16.15 MB / 1.553 GB, free: 13.43 MB / 1.279 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01537/1.429, allocations: 6.058 MB / 1.559 GB, free: 7.262 MB / 1.279 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01785/1.447, allocations: 5.068 MB / 1.564 GB, free: 2.191 MB / 1.279 GB Notification: Performance of NFSimplifyModel.simplify: time 0.9569/2.404, allocations: 4.023 MB / 1.567 GB, free: 41.1 MB / 1.279 GB Notification: Performance of NFPackage.collectConstants: time 0.004368/2.408, allocations: 0.7182 MB / 1.568 GB, free: 41.1 MB / 1.279 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0156/2.424, allocations: 4.523 MB / 1.573 GB, free: 41.1 MB / 1.279 GB Notification: Performance of NFScalarize.scalarize: time 0.004737/2.428, allocations: 1.862 MB / 1.574 GB, free: 41.1 MB / 1.279 GB Notification: Performance of NFVerifyModel.verify: time 0.01559/2.444, allocations: 3.594 MB / 1.578 GB, free: 41.1 MB / 1.279 GB Notification: Performance of NFConvertDAE.convert: time 0.02802/2.472, allocations: 12.4 MB / 1.59 GB, free: 40.68 MB / 1.279 GB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/2.472, allocations: 1.062 kB / 1.59 GB, free: 40.68 MB / 1.279 GB Notification: Performance of FrontEnd: time 2.225e-06/2.472, allocations: 0 / 1.59 GB, free: 40.68 MB / 1.279 GB Notification: Performance of Transformations before backend: time 0.0004573/2.473, allocations: 0 / 1.59 GB, free: 40.68 MB / 1.279 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 895 * Number of variables: 895 Notification: Performance of Generate backend data structure: time 0.02855/2.501, allocations: 7.425 MB / 1.597 GB, free: 37.57 MB / 1.279 GB Notification: Performance of prepare preOptimizeDAE: time 5.368e-05/2.501, allocations: 9.5 kB / 1.597 GB, free: 37.57 MB / 1.279 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007064/2.508, allocations: 1.345 MB / 1.599 GB, free: 37.22 MB / 1.279 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01403/2.522, allocations: 6.402 MB / 1.605 GB, free: 36.22 MB / 1.279 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003086/2.523, allocations: 286.9 kB / 1.605 GB, free: 36.21 MB / 1.279 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001444/2.524, allocations: 375.5 kB / 1.606 GB, free: 36.21 MB / 1.279 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0134/2.538, allocations: 4.941 MB / 1.61 GB, free: 35.79 MB / 1.279 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001739/2.538, allocations: 7.812 kB / 1.61 GB, free: 35.79 MB / 1.279 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001128/2.539, allocations: 151.8 kB / 1.61 GB, free: 35.79 MB / 1.279 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001515/2.539, allocations: 127.9 kB / 1.611 GB, free: 35.78 MB / 1.279 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01211/2.551, allocations: 5.153 MB / 1.616 GB, free: 35.75 MB / 1.279 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04383/2.595, allocations: 20.4 MB / 1.636 GB, free: 28.81 MB / 1.279 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008725/2.604, allocations: 3.85 MB / 1.639 GB, free: 28.65 MB / 1.279 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004051/2.608, allocations: 1.966 MB / 1.641 GB, free: 28.63 MB / 1.279 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0192/2.627, allocations: 9.912 MB / 1.651 GB, free: 24.25 MB / 1.279 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00483/2.632, allocations: 2.211 MB / 1.653 GB, free: 24.12 MB / 1.279 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003232/2.635, allocations: 377.2 kB / 1.653 GB, free: 23.98 MB / 1.279 GB Notification: Performance of pre-optimization done (n=266): time 1.766e-05/2.635, allocations: 0 / 1.653 GB, free: 23.98 MB / 1.279 GB Notification: Performance of matching and sorting (n=266): time 0.02888/2.664, allocations: 9.009 MB / 1.662 GB, free: 23.16 MB / 1.279 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001656/2.665, allocations: 266 kB / 1.662 GB, free: 22.88 MB / 1.279 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01612/2.681, allocations: 5.447 MB / 1.668 GB, free: 22.5 MB / 1.279 GB Notification: Performance of collectPreVariables (initialization): time 0.001186/2.682, allocations: 88.92 kB / 1.668 GB, free: 22.47 MB / 1.279 GB Notification: Performance of collectInitialEqns (initialization): time 0.003519/2.685, allocations: 2.331 MB / 1.67 GB, free: 21.84 MB / 1.279 GB Notification: Performance of collectInitialBindings (initialization): time 0.00172/2.687, allocations: 0.9009 MB / 1.671 GB, free: 21.27 MB / 1.279 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003938/2.691, allocations: 0.8314 MB / 1.672 GB, free: 21.21 MB / 1.279 GB Notification: Performance of setup shared object (initialization): time 5.651e-05/2.691, allocations: 302 kB / 1.672 GB, free: 20.91 MB / 1.279 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004594/2.696, allocations: 2.103 MB / 1.674 GB, free: 20.89 MB / 1.279 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005549/2.701, allocations: 3.197 MB / 1.677 GB, free: 19.98 MB / 1.279 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008939/2.71, allocations: 4.661 MB / 1.682 GB, free: 18.82 MB / 1.279 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.431e-05/2.71, allocations: 7.438 kB / 1.682 GB, free: 18.82 MB / 1.279 GB Notification: Performance of matching and sorting (n=477) (initialization): time 0.01713/2.728, allocations: 6.268 MB / 1.688 GB, free: 16.03 MB / 1.279 GB Notification: Performance of prepare postOptimizeDAE: time 5.615e-05/2.728, allocations: 13.59 kB / 1.688 GB, free: 16.03 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-05/2.728, allocations: 14.12 kB / 1.688 GB, free: 16.03 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.224/4.952, allocations: 339.2 MB / 2.019 GB, free: 4.652 MB / 1.592 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004573/4.956, allocations: 0.7616 MB / 2.02 GB, free: 3.934 MB / 1.592 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008005/4.964, allocations: 5.748 MB / 2.026 GB, free: 13.95 MB / 1.607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00697/4.971, allocations: 360 kB / 2.026 GB, free: 13.6 MB / 1.607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001295/4.973, allocations: 176.2 kB / 2.026 GB, free: 13.43 MB / 1.607 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.009674/4.982, allocations: 3.436 MB / 2.029 GB, free: 9.984 MB / 1.607 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.006328/4.989, allocations: 3.127 MB / 2.033 GB, free: 6.578 MB / 1.607 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00972/4.998, allocations: 4.54 MB / 2.037 GB, free: 1.855 MB / 1.607 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.826e-05/4.998, allocations: 4 kB / 2.037 GB, free: 1.852 MB / 1.607 GB Notification: Performance of matching and sorting (n=477) (initialization_lambda0): time 0.01661/5.015, allocations: 6.102 MB / 2.043 GB, free: 11.79 MB / 1.623 GB Notification: Performance of prepare postOptimizeDAE: time 2.962e-05/5.015, allocations: 13.88 kB / 2.043 GB, free: 11.78 MB / 1.623 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.583e-05/5.015, allocations: 23.66 kB / 2.043 GB, free: 11.76 MB / 1.623 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.026/8.041, allocations: 339.1 MB / 2.374 GB, free: 0.6425 GB / 1.764 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00396/8.045, allocations: 0.7558 MB / 2.375 GB, free: 0.6418 GB / 1.764 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00727/8.052, allocations: 7.136 MB / 2.382 GB, free: 0.6353 GB / 1.764 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007216/8.059, allocations: 374.4 kB / 2.382 GB, free: 0.635 GB / 1.764 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001187/8.061, allocations: 171.4 kB / 2.382 GB, free: 0.6349 GB / 1.764 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * Number of states: 0 () * Number of discrete variables: 23 (tow.cooTowSpeCon.con1.y,weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,hys.y,$PRE.hys.y,weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,tow.hys.y,$PRE.tow.hys.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (421): * Single equations (assignments): 413 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 6 systems {(1,6), (1,6), (1,1), (1,1), (3,5), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.001932/8.062, allocations: 405 kB / 2.383 GB, free: 0.6346 GB / 1.764 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003057/8.066, allocations: 0.4956 MB / 2.383 GB, free: 0.6344 GB / 1.764 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02063/8.086, allocations: 5.457 MB / 2.389 GB, free: 0.63 GB / 1.764 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009966/8.096, allocations: 4.327 MB / 2.393 GB, free: 0.6257 GB / 1.764 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-05/8.096, allocations: 4 kB / 2.393 GB, free: 0.6257 GB / 1.764 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004668/8.101, allocations: 1.08 MB / 2.394 GB, free: 0.6249 GB / 1.764 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002905/8.104, allocations: 63.98 kB / 2.394 GB, free: 0.6248 GB / 1.764 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005638/8.11, allocations: 279.9 kB / 2.394 GB, free: 0.6245 GB / 1.764 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008519/8.11, allocations: 210.1 kB / 2.394 GB, free: 0.6243 GB / 1.764 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01515/8.126, allocations: 5.741 MB / 2.4 GB, free: 0.6188 GB / 1.764 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01343/8.139, allocations: 7.035 MB / 2.407 GB, free: 0.6119 GB / 1.764 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003506/8.143, allocations: 2.018 MB / 2.409 GB, free: 0.6099 GB / 1.764 GB Notification: Performance of sorting global known variables: time 0.008889/8.152, allocations: 3.754 MB / 2.412 GB, free: 0.6063 GB / 1.764 GB Notification: Performance of Backend: time 8.42e-07/8.152, allocations: 0 / 2.412 GB, free: 0.6063 GB / 1.764 GB Notification: Performance of simCode: created initialization part: time 0.02632/8.178, allocations: 8.153 MB / 2.42 GB, free: 0.5989 GB / 1.764 GB Notification: Performance of SimCode: time 0.02986/8.208, allocations: 12.19 MB / 2.432 GB, free: 0.5871 GB / 1.764 GB Notification: Performance of Templates: time 0.1928/8.401, allocations: 136 MB / 2.565 GB, free: 466.3 MB / 1.764 GB make -j1 -f Buildings_latest_Buildings.DHC.Plants.Cooling.Subsystems.Examples.CoolingTowersWithBypass.makefile (rm -f Buildings_latest_Buildings.DHC.Plants.Cooling.Subsystems.Examples.CoolingTowersWithBypass.pipe ; mkfifo Buildings_latest_Buildings.DHC.Plants.Cooling.Subsystems.Examples.CoolingTowersWithBypass.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Plants.Cooling.Subsystems.Examples.CoolingTowersWithBypass.pipe >> ../files/Buildings_latest_Buildings.DHC.Plants.Cooling.Subsystems.Examples.CoolingTowersWithBypass.sim & ./Buildings_latest_Buildings.DHC.Plants.Cooling.Subsystems.Examples.CoolingTowersWithBypass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.DHC.Plants.Cooling.Subsystems.Examples.CoolingTowersWithBypass.pipe 2>&1)