Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc") translateModel(Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.331/1.331, allocations: 251.5 MB / 267.4 MB, free: 11.07 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001061/0.001061, allocations: 174 kB / 326.5 MB, free: 2.695 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.46/1.46, allocations: 205 MB / 0.5766 GB, free: 20.93 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000673/0.0006728, allocations: 92.59 kB / 0.6804 GB, free: 14.69 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002748/0.0002748, allocations: 8.438 kB / 0.7938 GB, free: 136.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1503/0.1506, allocations: 105.4 MB / 0.8968 GB, free: 68.16 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc): time 0.05788/0.2085, allocations: 86.63 MB / 0.9814 GB, free: 13.23 MB / 0.6355 GB Notification: Performance of NFInst.instExpressions: time 0.4902/0.6987, allocations: 167 MB / 1.144 GB, free: 27.24 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00289/0.7017, allocations: 90.59 kB / 1.145 GB, free: 27.2 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.002661/0.7043, allocations: 1.179 MB / 1.146 GB, free: 26.8 MB / 0.698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/BoundaryConditions/WeatherData/BaseClasses/getHeaderElementTMY3.mo:2:1-105:25:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘ contains a call to impure function ‘Modelica.Utilities.Streams.readLine‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/BoundaryConditions/WeatherData/BaseClasses/getLongitudeTMY3.mo:2:1-48:21:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getLongitudeTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/BoundaryConditions/WeatherData/BaseClasses/getLatitudeTMY3.mo:2:1-48:20:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getLatitudeTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/BoundaryConditions/WeatherData/BaseClasses/getTimeZoneTMY3.mo:2:1-47:20:writable] Warning: Pure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getTimeZoneTMY3‘ contains a call to impure function ‘Buildings.BoundaryConditions.WeatherData.BaseClasses.getHeaderElementTMY3‘. Notification: Performance of NFTyping.typeBindings: time 0.00657/0.7109, allocations: 2.98 MB / 1.149 GB, free: 25.48 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.008291/0.7192, allocations: 3.748 MB / 1.152 GB, free: 24.56 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.006704/0.7259, allocations: 8.333 MB / 1.16 GB, free: 22.01 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00263/0.7286, allocations: 2.428 MB / 1.163 GB, free: 20.95 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002573/0.7312, allocations: 1.991 MB / 1.165 GB, free: 19.96 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001642/0.7328, allocations: 1.856 MB / 1.167 GB, free: 18.98 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 0.0002612/0.7331, allocations: 99.97 kB / 1.167 GB, free: 18.98 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003774/0.7369, allocations: 2.25 MB / 1.169 GB, free: 17.86 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 0.0004687/0.7373, allocations: 0.6425 MB / 1.169 GB, free: 17.44 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 0.001069/0.7384, allocations: 1.434 MB / 1.171 GB, free: 16.5 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.004763/0.7432, allocations: 5.136 MB / 1.176 GB, free: 12.7 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.7432, allocations: 0 / 1.176 GB, free: 12.7 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.953e-06/0.7432, allocations: 0 / 1.176 GB, free: 12.7 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.072e-05/0.7433, allocations: 0 / 1.176 GB, free: 12.7 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 540 * Number of variables: 540 Notification: Performance of Generate backend data structure: time 0.004409/0.7477, allocations: 3.208 MB / 1.179 GB, free: 9.441 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.7477, allocations: 12.03 kB / 1.179 GB, free: 9.43 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002189/0.7499, allocations: 0.5866 MB / 1.18 GB, free: 8.84 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002936/0.7529, allocations: 2.383 MB / 1.182 GB, free: 6.445 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.321e-05/0.753, allocations: 172.2 kB / 1.182 GB, free: 6.273 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002283/0.7532, allocations: 223.9 kB / 1.182 GB, free: 6.055 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003227/0.7564, allocations: 2.473 MB / 1.185 GB, free: 3.406 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.449e-05/0.7565, allocations: 7.938 kB / 1.185 GB, free: 3.398 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001613/0.7567, allocations: 92 kB / 1.185 GB, free: 3.309 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.62e-05/0.7567, allocations: 55.94 kB / 1.185 GB, free: 3.254 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003427/0.7601, allocations: 2.318 MB / 1.187 GB, free: 0.9336 MB / 0.698 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.01186/0.772, allocations: 10.05 MB / 1.197 GB, free: 6.605 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00284/0.7749, allocations: 1.601 MB / 1.198 GB, free: 5.008 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001395/0.7763, allocations: 0.7622 MB / 1.199 GB, free: 4.246 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005998/0.7823, allocations: 4.799 MB / 1.204 GB, free: 15.07 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001688/0.784, allocations: 0.9115 MB / 1.205 GB, free: 14.14 MB / 0.7292 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004987/0.7845, allocations: 162 kB / 1.205 GB, free: 13.98 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=149): time 2.966e-06/0.7845, allocations: 0 / 1.205 GB, free: 13.98 MB / 0.7292 GB Notification: Performance of matching and sorting (n=149): time 0.005582/0.7901, allocations: 2.34 MB / 1.207 GB, free: 11.61 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/0.7902, allocations: 274.3 kB / 1.208 GB, free: 11.29 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00261/0.7928, allocations: 2.196 MB / 1.21 GB, free: 9.078 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 0.0001165/0.793, allocations: 65.64 kB / 1.21 GB, free: 9.008 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009807/0.794, allocations: 1.264 MB / 1.211 GB, free: 7.734 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003851/0.7943, allocations: 0.5045 MB / 1.211 GB, free: 7.234 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002042/0.7946, allocations: 165.6 kB / 1.212 GB, free: 7.066 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 9.294e-05/0.7947, allocations: 305.1 kB / 1.212 GB, free: 6.766 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001415/0.7961, allocations: 0.7105 MB / 1.213 GB, free: 6.055 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0019/0.798, allocations: 1.318 MB / 1.214 GB, free: 4.531 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003171/0.8012, allocations: 1.932 MB / 1.216 GB, free: 2.43 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.276e-06/0.8012, allocations: 4 kB / 1.216 GB, free: 2.426 MB / 0.7292 GB Notification: Performance of matching and sorting (n=245) (initialization): time 0.004642/0.8058, allocations: 2.337 MB / 1.218 GB, free: 80 kB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.000277/0.8061, allocations: 484.2 kB / 1.219 GB, free: 15.43 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.295e-05/0.8062, allocations: 16 kB / 1.219 GB, free: 15.41 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005921/0.8068, allocations: 108.6 kB / 1.219 GB, free: 15.3 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001664/0.8084, allocations: 439.4 kB / 1.219 GB, free: 14.88 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00232/0.8108, allocations: 2.131 MB / 1.221 GB, free: 12.58 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00195/0.8127, allocations: 199.8 kB / 1.221 GB, free: 12.39 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001635/0.8129, allocations: 99.89 kB / 1.221 GB, free: 12.29 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 5.821e-06/0.8129, allocations: 4 kB / 1.221 GB, free: 12.29 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003855/0.8168, allocations: 1.988 MB / 1.223 GB, free: 10.3 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.935e-05/0.8168, allocations: 12 kB / 1.223 GB, free: 10.29 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005406/0.8174, allocations: 108.9 kB / 1.223 GB, free: 10.18 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001539/0.8189, allocations: 435.3 kB / 1.224 GB, free: 9.754 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002/0.8209, allocations: 2.137 MB / 1.226 GB, free: 7.457 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001693/0.8226, allocations: 168.5 kB / 1.226 GB, free: 7.293 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001437/0.8228, allocations: 91.97 kB / 1.226 GB, free: 7.203 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 11 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,onOffCon.y,$PRE.onOffCon.y,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition1,$whenCondition2,conFan.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (236): * Single equations (assignments): 230 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.001111/0.8239, allocations: 0.68 MB / 1.227 GB, free: 6.516 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000393/0.8243, allocations: 264.7 kB / 1.227 GB, free: 6.254 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004717/0.829, allocations: 2.196 MB / 1.229 GB, free: 4.039 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003421/0.8325, allocations: 1.819 MB / 1.231 GB, free: 2.152 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.07e-06/0.8325, allocations: 0 / 1.231 GB, free: 2.152 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007971/0.8333, allocations: 0.5169 MB / 1.232 GB, free: 1.613 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003127/0.8336, allocations: 35.98 kB / 1.232 GB, free: 1.578 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001401/0.835, allocations: 156.7 kB / 1.232 GB, free: 1.426 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002163/0.8352, allocations: 117.8 kB / 1.232 GB, free: 1.309 MB / 0.7448 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004337/0.8396, allocations: 1.952 MB / 1.234 GB, free: 15.38 MB / 0.7605 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.005019/0.8446, allocations: 2.973 MB / 1.237 GB, free: 12.39 MB / 0.7605 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001372/0.846, allocations: 0.7964 MB / 1.237 GB, free: 11.59 MB / 0.7605 GB Notification: Performance of sorting global known variables: time 0.001877/0.8479, allocations: 1.463 MB / 1.239 GB, free: 10.12 MB / 0.7605 GB Notification: Performance of Backend: time 3.51e-07/0.8479, allocations: 0 / 1.239 GB, free: 10.12 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.007741/0.8556, allocations: 3.773 MB / 1.243 GB, free: 6.531 MB / 0.7605 GB Notification: Performance of SimCode: time 0.009477/0.8651, allocations: 6.839 MB / 1.249 GB, free: 15.67 MB / 0.7761 GB Notification: Performance of Templates: time 0.08728/0.9524, allocations: 60.19 MB / 1.308 GB, free: 3.871 MB / 0.823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.pipe 2>&1)