Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc") translateModel(Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001218/0.001218, allocations: 112.1 kB / 16.37 MB, free: 6.312 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.001154/0.001154, allocations: 189.8 kB / 17.3 MB, free: 5.871 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.371/1.371, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.843/1.843, allocations: 292.3 MB / 0.5496 GB, free: 17.52 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001588/0.001589, allocations: 67.91 kB / 0.6729 GB, free: 5.844 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2006/0.2022, allocations: 114.5 MB / 0.7848 GB, free: 3.184 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc): time 0.3905/0.5928, allocations: 87.61 MB / 0.8703 GB, free: 5.984 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.1931/0.786, allocations: 168.9 MB / 1.035 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004895/0.7909, allocations: 103.4 kB / 1.035 GB, free: 9.297 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.004857/0.7958, allocations: 1.37 MB / 1.037 GB, free: 7.918 MB / 0.8262 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:216:3-259:11:writable] Warning: Pure function 'Modelica.Utilities.Strings.find' contains a call to impure function 'Modelica.Utilities.Strings.length'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4-maint.8.1.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 8.1.4-maint.8.1.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 8.1.4-maint.8.1.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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.01108/0.8069, allocations: 3.296 MB / 1.04 GB, free: 4.613 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.01284/0.8198, allocations: 4.406 MB / 1.044 GB, free: 264 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.01037/0.8302, allocations: 6.738 MB / 1.051 GB, free: 9.504 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005652/0.8359, allocations: 2.923 MB / 1.054 GB, free: 6.512 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00626/0.8421, allocations: 2.446 MB / 1.056 GB, free: 4.07 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003929/0.8461, allocations: 1.995 MB / 1.058 GB, free: 2.066 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.00122/0.8473, allocations: 304 kB / 1.058 GB, free: 1.77 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006255/0.8536, allocations: 2.512 MB / 1.061 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.001486/0.8551, allocations: 0.8604 MB / 1.062 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.003068/0.8582, allocations: 1.683 MB / 1.063 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.009764/0.868, allocations: 5.409 MB / 1.068 GB, free: 7.273 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.868, allocations: 4 kB / 1.068 GB, free: 7.27 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.683e-06/0.868, allocations: 0 / 1.068 GB, free: 7.27 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.000137/0.8682, allocations: 0 / 1.068 GB, free: 7.27 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 535 * Number of variables: 535 Notification: Performance of Generate backend data structure: time 0.007811/0.876, allocations: 3.778 MB / 1.072 GB, free: 3.414 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.8761, allocations: 8.75 kB / 1.072 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00279/0.8788, allocations: 0.5618 MB / 1.073 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005102/0.884, allocations: 2.412 MB / 1.075 GB, free: 360 kB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001599/0.8841, allocations: 168.2 kB / 1.075 GB, free: 188 kB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005182/0.8847, allocations: 220 kB / 1.075 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00479/0.8895, allocations: 2.423 MB / 1.078 GB, free: 13.37 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.671e-05/0.8895, allocations: 11.84 kB / 1.078 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002046/0.8897, allocations: 88 kB / 1.078 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.185e-05/0.8898, allocations: 59.94 kB / 1.078 GB, free: 13.21 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004082/0.8939, allocations: 2.236 MB / 1.08 GB, free: 10.97 MB / 0.8731 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.01305/0.907, allocations: 9.806 MB / 1.09 GB, free: 0.7969 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002818/0.9098, allocations: 1.52 MB / 1.091 GB, free: 15.27 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001394/0.9112, allocations: 0.7295 MB / 1.092 GB, free: 14.54 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006728/0.918, allocations: 4.702 MB / 1.097 GB, free: 9.398 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001767/0.9198, allocations: 0.8685 MB / 1.097 GB, free: 8.512 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=145): time 4.899e-06/0.9198, allocations: 0 / 1.097 GB, free: 8.512 MB / 0.8887 GB Notification: Performance of matching and sorting (n=145): time 0.005759/0.9256, allocations: 2.215 MB / 1.1 GB, free: 6.266 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.9257, allocations: 252.6 kB / 1.1 GB, free: 5.965 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003465/0.9292, allocations: 2.175 MB / 1.102 GB, free: 3.777 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0002224/0.9294, allocations: 57.7 kB / 1.102 GB, free: 3.715 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.001134/0.9306, allocations: 1.25 MB / 1.103 GB, free: 2.449 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005051/0.9311, allocations: 0.493 MB / 1.104 GB, free: 1.949 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000655/0.9317, allocations: 395.1 kB / 1.104 GB, free: 1.559 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 9.329e-05/0.9318, allocations: 309.1 kB / 1.104 GB, free: 1.254 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001445/0.9333, allocations: 0.6763 MB / 1.105 GB, free: 0.5742 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001974/0.9353, allocations: 1.283 MB / 1.106 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003216/0.9385, allocations: 1.871 MB / 1.108 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.14e-05/0.9385, allocations: 4 kB / 1.108 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of matching and sorting (n=242) (initialization): time 0.004976/0.9435, allocations: 2.256 MB / 1.11 GB, free: 10.75 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.596e-05/0.9436, allocations: 16.88 kB / 1.11 GB, free: 10.74 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.916e-05/0.9436, allocations: 12 kB / 1.11 GB, free: 10.73 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005996/0.9442, allocations: 104.8 kB / 1.11 GB, free: 10.62 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001734/0.9459, allocations: 443.3 kB / 1.111 GB, free: 10.19 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002335/0.9483, allocations: 2.244 MB / 1.113 GB, free: 7.781 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002131/0.9504, allocations: 246.6 kB / 1.113 GB, free: 7.535 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002374/0.9507, allocations: 99.95 kB / 1.113 GB, free: 7.438 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002343/0.953, allocations: 1.125 MB / 1.114 GB, free: 6.309 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001896/0.9549, allocations: 1.248 MB / 1.116 GB, free: 4.859 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003122/0.9581, allocations: 1.812 MB / 1.117 GB, free: 2.867 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.054e-05/0.9581, allocations: 4 kB / 1.117 GB, free: 2.863 MB / 0.9044 GB Notification: Performance of matching and sorting (n=242) (initialization_lambda0): time 0.004774/0.9629, allocations: 2.201 MB / 1.12 GB, free: 0.6484 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.9629, allocations: 8 kB / 1.12 GB, free: 0.6406 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.66e-05/0.963, allocations: 16 kB / 1.12 GB, free: 0.625 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005504/0.9635, allocations: 101.5 kB / 1.12 GB, free: 0.5234 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001621/0.9651, allocations: 439.3 kB / 1.12 GB, free: 96 kB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002235/0.9674, allocations: 2.255 MB / 1.122 GB, free: 13.68 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00204/0.9694, allocations: 199.3 kB / 1.123 GB, free: 13.48 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000215/0.9697, allocations: 99.94 kB / 1.123 GB, free: 13.38 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (233): * Single equations (assignments): 227 * 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.000525/0.9702, allocations: 300.8 kB / 1.123 GB, free: 13.08 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000705/0.9709, allocations: 260.8 kB / 1.123 GB, free: 12.82 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004893/0.9758, allocations: 2.057 MB / 1.125 GB, free: 10.77 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003423/0.9793, allocations: 1.745 MB / 1.127 GB, free: 8.961 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.351e-06/0.9793, allocations: 3.938 kB / 1.127 GB, free: 8.957 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001114/0.9804, allocations: 0.5285 MB / 1.127 GB, free: 8.406 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004804/0.9809, allocations: 35.98 kB / 1.127 GB, free: 8.371 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001528/0.9824, allocations: 102.5 kB / 1.128 GB, free: 8.273 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002107/0.9826, allocations: 113.8 kB / 1.128 GB, free: 8.16 MB / 0.92 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00436/0.987, allocations: 1.834 MB / 1.129 GB, free: 6.316 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005067/0.9921, allocations: 2.822 MB / 1.132 GB, free: 3.477 MB / 0.92 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001351/0.9935, allocations: 0.7652 MB / 1.133 GB, free: 2.715 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.002306/0.9958, allocations: 1.442 MB / 1.134 GB, free: 1.266 MB / 0.92 GB Notification: Performance of Backend: time 4.5e-07/0.9958, allocations: 4 kB / 1.134 GB, free: 1.262 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.2971/1.293, allocations: 3.702 MB / 1.138 GB, free: 306.3 MB / 0.92 GB Notification: Performance of SimCode: time 0.008356/1.301, allocations: 5.718 MB / 1.144 GB, free: 304.2 MB / 0.92 GB Notification: Performance of Templates: time 0.342/1.643, allocations: 62.25 MB / 1.204 GB, free: 280.9 MB / 0.92 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.makefile (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.sim & ./Buildings_8_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatExchangers.CoolingTowers.Examples.YorkCalc.pipe 2>&1)