Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Experimental.DHC.CentralPlants.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 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.Experimental.DHC.CentralPlants.Cooling.Subsystems.Examples.CoolingTowersWithBypass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Subsystems.Examples.CoolingTowersWithBypass") translateModel(Buildings.Experimental.DHC.CentralPlants.Cooling.Subsystems.Examples.CoolingTowersWithBypass,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Experimental.DHC.CentralPlants.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.001517/0.001517, allocations: 114.2 kB / 16.38 MB, free: 6.02 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.00154/0.00154, allocations: 187.1 kB / 17.31 MB, free: 5.617 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.397/1.397, allocations: 205.1 MB / 223.2 MB, free: 12.25 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.787/1.787, allocations: 292.3 MB / 0.5496 GB, free: 17.6 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.001582/0.001582, allocations: 64.12 kB / 0.673 GB, free: 5.812 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.2386, allocations: 114.6 MB / 0.7848 GB, free: 3.137 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.CentralPlants.Cooling.Subsystems.Examples.CoolingTowersWithBypass): time 0.7312/0.9699, allocations: 269.5 MB / 1.048 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.05319/1.023, allocations: 36.38 MB / 1.083 GB, free: 7.84 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.007151/1.03, allocations: 159.1 kB / 1.084 GB, free: 7.684 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.007212/1.038, allocations: 2.12 MB / 1.086 GB, free: 5.551 MB / 0.8731 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.01785/1.055, allocations: 5.596 MB / 1.091 GB, free: 15.94 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.01675/1.072, allocations: 5.99 MB / 1.097 GB, free: 10.05 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0219/1.094, allocations: 13.17 MB / 1.11 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01092/1.105, allocations: 6.111 MB / 1.116 GB, free: 6.711 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01176/1.117, allocations: 4.955 MB / 1.121 GB, free: 1.754 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007925/1.125, allocations: 3.948 MB / 1.125 GB, free: 13.79 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.002835/1.128, allocations: 0.7148 MB / 1.125 GB, free: 13.07 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01238/1.14, allocations: 4.344 MB / 1.129 GB, free: 8.727 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.003687/1.144, allocations: 1.764 MB / 1.131 GB, free: 6.957 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.008025/1.152, allocations: 3.422 MB / 1.135 GB, free: 3.52 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.6469/1.799, allocations: 12.27 MB / 1.147 GB, free: 52.13 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 9.438e-06/1.799, allocations: 0 / 1.147 GB, free: 52.13 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.455e-06/1.799, allocations: 0 / 1.147 GB, free: 52.13 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0004637/1.799, allocations: 0 / 1.147 GB, free: 52.13 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 884 * Number of variables: 884 Notification: Performance of Generate backend data structure: time 0.02635/1.826, allocations: 7.113 MB / 1.153 GB, free: 49.3 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 6.775e-05/1.826, allocations: 11.41 kB / 1.153 GB, free: 49.3 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007076/1.833, allocations: 1.227 MB / 1.155 GB, free: 48.98 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01421/1.847, allocations: 5.446 MB / 1.16 GB, free: 48.04 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000384/1.848, allocations: 279 kB / 1.16 GB, free: 48.03 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001969/1.849, allocations: 382 kB / 1.161 GB, free: 48.02 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01328/1.863, allocations: 5.037 MB / 1.166 GB, free: 47.52 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.163e-05/1.863, allocations: 4.438 kB / 1.166 GB, free: 47.52 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005258/1.863, allocations: 147.4 kB / 1.166 GB, free: 47.52 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000146/1.864, allocations: 89.84 kB / 1.166 GB, free: 47.52 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01235/1.876, allocations: 5.146 MB / 1.171 GB, free: 47.49 MB / 0.92 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.0436/1.92, allocations: 19.96 MB / 1.19 GB, free: 41.03 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009613/1.929, allocations: 4.386 MB / 1.195 GB, free: 40.86 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003719/1.933, allocations: 1.979 MB / 1.197 GB, free: 40.83 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02083/1.954, allocations: 9.639 MB / 1.206 GB, free: 36.81 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005447/1.959, allocations: 2.241 MB / 1.208 GB, free: 36.68 MB / 0.92 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003794/1.963, allocations: 364.4 kB / 1.208 GB, free: 36.55 MB / 0.92 GB Notification: Performance of pre-optimization done (n=265): time 2.05e-05/1.963, allocations: 4.219 kB / 1.208 GB, free: 36.55 MB / 0.92 GB Notification: Performance of matching and sorting (n=265): time 0.02695/1.99, allocations: 9.028 MB / 1.217 GB, free: 35.75 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001726/1.99, allocations: 0.5356 MB / 1.218 GB, free: 35.12 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01266/2.003, allocations: 5.01 MB / 1.223 GB, free: 34.53 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.001367/2.005, allocations: 95.22 kB / 1.223 GB, free: 34.5 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.003174/2.008, allocations: 2.257 MB / 1.225 GB, free: 33.67 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.001762/2.009, allocations: 0.9049 MB / 1.226 GB, free: 33.01 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003555/2.013, allocations: 0.7562 MB / 1.227 GB, free: 32.86 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 5.529e-05/2.013, allocations: 304.3 kB / 1.227 GB, free: 32.56 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00439/2.018, allocations: 2.056 MB / 1.229 GB, free: 32.18 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005395/2.023, allocations: 3.173 MB / 1.232 GB, free: 30.88 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008693/2.032, allocations: 4.57 MB / 1.236 GB, free: 29.73 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.585e-05/2.032, allocations: 7.219 kB / 1.236 GB, free: 29.73 MB / 0.92 GB Notification: Performance of matching and sorting (n=427) (initialization): time 0.01463/2.046, allocations: 6.085 MB / 1.242 GB, free: 28.43 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.665e-05/2.046, allocations: 11.81 kB / 1.242 GB, free: 28.43 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-05/2.047, allocations: 19.56 kB / 1.242 GB, free: 28.43 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.542/4.588, allocations: 339.2 MB / 1.574 GB, free: 0.5523 GB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004177/4.592, allocations: 0.738 MB / 1.574 GB, free: 0.5522 GB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006229/4.599, allocations: 5.75 MB / 1.58 GB, free: 0.5479 GB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006573/4.605, allocations: 338.8 kB / 1.58 GB, free: 0.5478 GB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001076/4.606, allocations: 169.5 kB / 1.58 GB, free: 0.5477 GB / 1.186 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.007845/4.614, allocations: 3.342 MB / 1.584 GB, free: 0.5471 GB / 1.186 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004956/4.619, allocations: 3.092 MB / 1.587 GB, free: 0.5458 GB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.007668/4.627, allocations: 4.417 MB / 1.591 GB, free: 0.5432 GB / 1.186 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.978e-05/4.627, allocations: 5.375 kB / 1.591 GB, free: 0.5432 GB / 1.186 GB Notification: Performance of matching and sorting (n=427) (initialization_lambda0): time 0.01228/4.639, allocations: 5.892 MB / 1.597 GB, free: 0.5405 GB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 2.976e-05/4.639, allocations: 11.5 kB / 1.597 GB, free: 0.5405 GB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.177e-05/4.639, allocations: 23.02 kB / 1.597 GB, free: 0.5405 GB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.93/6.569, allocations: 339.1 MB / 1.928 GB, free: 218.9 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003887/6.573, allocations: 0.7204 MB / 1.929 GB, free: 218.3 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006494/6.58, allocations: 7.145 MB / 1.936 GB, free: 210.8 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006791/6.586, allocations: 361.8 kB / 1.936 GB, free: 210.4 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00124/6.588, allocations: 161 kB / 1.936 GB, free: 210.3 MB / 1.186 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 14 (tow.cooTowSpeCon.con1.y,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,tow.hys.y,$PRE.tow.hys.y,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (395): * Single equations (assignments): 380 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 4 * 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.002293/6.59, allocations: 396 kB / 1.937 GB, free: 209.9 MB / 1.186 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002573/6.593, allocations: 479.1 kB / 1.937 GB, free: 209.7 MB / 1.186 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0129/6.606, allocations: 5.392 MB / 1.942 GB, free: 204.4 MB / 1.186 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007475/6.613, allocations: 4.333 MB / 1.947 GB, free: 200 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.13e-05/6.613, allocations: 0 / 1.947 GB, free: 200 MB / 1.186 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003432/6.617, allocations: 1.032 MB / 1.948 GB, free: 199.1 MB / 1.186 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002146/6.619, allocations: 71.98 kB / 1.948 GB, free: 199 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004443/6.623, allocations: 268.5 kB / 1.948 GB, free: 198.7 MB / 1.186 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005569/6.624, allocations: 206.1 kB / 1.948 GB, free: 198.5 MB / 1.186 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01374/6.637, allocations: 5.864 MB / 1.954 GB, free: 192.7 MB / 1.186 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01239/6.65, allocations: 7.119 MB / 1.961 GB, free: 185.5 MB / 1.186 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003125/6.653, allocations: 2.064 MB / 1.963 GB, free: 183.4 MB / 1.186 GB Notification: Performance of sorting global known variables: time 0.007211/6.66, allocations: 3.464 MB / 1.966 GB, free: 179.9 MB / 1.186 GB Notification: Performance of Backend: time 1.433e-06/6.66, allocations: 0 / 1.966 GB, free: 179.9 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.02034/6.681, allocations: 7.975 MB / 1.974 GB, free: 172.6 MB / 1.186 GB Notification: Performance of SimCode: time 0.02488/6.706, allocations: 11.73 MB / 1.985 GB, free: 161.1 MB / 1.186 GB Notification: Performance of Templates: time 0.1734/6.879, allocations: 130 MB / 2.112 GB, free: 32.39 MB / 1.186 GB make -j1 -f Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Subsystems.Examples.CoolingTowersWithBypass.makefile (rm -f Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Subsystems.Examples.CoolingTowersWithBypass.pipe ; mkfifo Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Subsystems.Examples.CoolingTowersWithBypass.pipe ; head -c 1048576 < Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Subsystems.Examples.CoolingTowersWithBypass.pipe >> ../files/Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Subsystems.Examples.CoolingTowersWithBypass.sim & ./Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Subsystems.Examples.CoolingTowersWithBypass -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Experimental.DHC.CentralPlants.Cooling.Subsystems.Examples.CoolingTowersWithBypass.pipe 2>&1)