Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Examples.Tutorial.SpaceCooling.System2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: translateModel(Buildings.Examples.Tutorial.SpaceCooling.System2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Examples.Tutorial.SpaceCooling.System2") translateModel(Buildings.Examples.Tutorial.SpaceCooling.System2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.8.0.x_Buildings.Examples.Tutorial.SpaceCooling.System2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.612/1.612, allocations: 288.4 MB / 304.3 MB, free: 8.133 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001029/0.001029, allocations: 183 kB / 372.9 MB, free: 10.14 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.466/1.466, allocations: 205.4 MB / 0.6316 GB, free: 9.898 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007452/0.0007453, allocations: 98.66 kB / 0.745 GB, free: 5.797 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004024/0.0004024, allocations: 11.41 kB / 0.8681 GB, free: 141.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1729/0.1733, allocations: 115.3 MB / 0.9807 GB, free: 27.36 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.SpaceCooling.System2): time 0.7346/0.908, allocations: 327.2 MB / 1.3 GB, free: 3.172 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.05517/0.9632, allocations: 38.7 MB / 1.338 GB, free: 12.39 MB / 0.8698 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006563/0.9698, allocations: 143.1 kB / 1.338 GB, free: 12.25 MB / 0.8698 GB Notification: Performance of NFTyping.typeComponents: time 0.007727/0.9776, allocations: 2.097 MB / 1.34 GB, free: 10.14 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1-maint.8.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 8.0.1-maint.8.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 8.0.1-maint.8.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.02541/1.003, allocations: 7.256 MB / 1.347 GB, free: 2.863 MB / 0.8698 GB Notification: Performance of NFTyping.typeClassSections: time 0.01777/1.021, allocations: 4.786 MB / 1.352 GB, free: 14.11 MB / 0.8855 GB Notification: Performance of NFFlatten.flatten: time 0.01858/1.039, allocations: 13.71 MB / 1.365 GB, free: 360 kB / 0.8855 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009246/1.049, allocations: 4.196 MB / 1.369 GB, free: 12.07 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01417/1.063, allocations: 4.98 MB / 1.374 GB, free: 7.082 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007891/1.071, allocations: 3.531 MB / 1.378 GB, free: 3.543 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 0.002037/1.073, allocations: 204 kB / 1.378 GB, free: 3.344 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01755/1.09, allocations: 8.799 MB / 1.387 GB, free: 10.53 MB / 0.9167 GB Notification: Performance of NFScalarize.scalarize: time 0.002864/1.093, allocations: 1.366 MB / 1.388 GB, free: 9.156 MB / 0.9167 GB Notification: Performance of NFVerifyModel.verify: time 0.006033/1.099, allocations: 2.656 MB / 1.391 GB, free: 6.48 MB / 0.9167 GB Notification: Performance of NFConvertDAE.convert: time 0.01444/1.114, allocations: 8.698 MB / 1.399 GB, free: 13.76 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/1.114, allocations: 0 / 1.399 GB, free: 13.76 MB / 0.9323 GB Notification: Performance of FrontEnd: time 1.903e-06/1.114, allocations: 4 kB / 1.399 GB, free: 13.76 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.0003466/1.114, allocations: 0 / 1.399 GB, free: 13.76 MB / 0.9323 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1020 * Number of variables: 1020 Notification: Performance of Generate backend data structure: time 0.01472/1.129, allocations: 5.728 MB / 1.405 GB, free: 7.941 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/1.129, allocations: 8.031 kB / 1.405 GB, free: 7.934 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02151/1.151, allocations: 3.38 MB / 1.408 GB, free: 4.543 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01013/1.161, allocations: 4.11 MB / 1.412 GB, free: 380 kB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001256/1.162, allocations: 0.5082 MB / 1.412 GB, free: 15.86 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001387/1.164, allocations: 423.9 kB / 1.413 GB, free: 15.45 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01642/1.18, allocations: 5.699 MB / 1.418 GB, free: 9.66 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001174/1.18, allocations: 0 / 1.418 GB, free: 9.66 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001091/1.181, allocations: 168 kB / 1.419 GB, free: 9.496 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001681/1.181, allocations: 159.7 kB / 1.419 GB, free: 9.34 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01697/1.198, allocations: 6.42 MB / 1.425 GB, free: 2.914 MB / 0.948 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.486/1.684, allocations: 22.02 MB / 1.446 GB, free: 331.6 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01116/1.696, allocations: 4.431 MB / 1.451 GB, free: 329.6 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006789/1.703, allocations: 2.48 MB / 1.453 GB, free: 328.8 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01456/1.717, allocations: 8.083 MB / 1.461 GB, free: 324.1 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006461/1.724, allocations: 2.709 MB / 1.464 GB, free: 323.2 MB / 0.948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002362/1.726, allocations: 288.2 kB / 1.464 GB, free: 323.1 MB / 0.948 GB Notification: Performance of pre-optimization done (n=306): time 1.081e-05/1.726, allocations: 0 / 1.464 GB, free: 323.1 MB / 0.948 GB Notification: Performance of matching and sorting (n=306): time 0.0242/1.75, allocations: 7.557 MB / 1.471 GB, free: 319.9 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/1.75, allocations: 327.7 kB / 1.472 GB, free: 319.6 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006407/1.757, allocations: 3.589 MB / 1.475 GB, free: 317.7 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0009147/1.758, allocations: 97.42 kB / 1.475 GB, free: 317.6 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.00181/1.76, allocations: 2.044 MB / 1.477 GB, free: 315.8 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001434/1.761, allocations: 1.036 MB / 1.478 GB, free: 314.9 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003392/1.761, allocations: 70.84 kB / 1.478 GB, free: 314.9 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0002114/1.762, allocations: 444.7 kB / 1.479 GB, free: 314.5 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006753/1.768, allocations: 2.254 MB / 1.481 GB, free: 313.4 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007262/1.776, allocations: 3.008 MB / 1.484 GB, free: 311.4 MB / 0.948 GB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.01486/1.791, allocations: 5.472 MB / 1.489 GB, free: 308.4 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.786e-05/1.791, allocations: 3.938 kB / 1.489 GB, free: 308.4 MB / 0.948 GB Notification: Performance of matching and sorting (n=451) (initialization): time 0.01911/1.81, allocations: 6.1 MB / 1.495 GB, free: 305.4 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003299/1.81, allocations: 0.5008 MB / 1.496 GB, free: 304.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.54e-05/1.81, allocations: 11.84 kB / 1.496 GB, free: 304.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00218/1.812, allocations: 353.4 kB / 1.496 GB, free: 304.5 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01145/1.824, allocations: 1.256 MB / 1.497 GB, free: 304.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006496/1.83, allocations: 6.594 MB / 1.504 GB, free: 297.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01082/1.841, allocations: 0.701 MB / 1.504 GB, free: 297.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001015/1.842, allocations: 172.5 kB / 1.505 GB, free: 297.2 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/1.842, allocations: 3.906 kB / 1.505 GB, free: 297.2 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01693/1.859, allocations: 5.635 MB / 1.51 GB, free: 294.5 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.208e-05/1.859, allocations: 18.19 kB / 1.51 GB, free: 294.5 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00141/1.861, allocations: 342.1 kB / 1.51 GB, free: 294.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006685/1.868, allocations: 1.233 MB / 1.512 GB, free: 293 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004848/1.872, allocations: 6.927 MB / 1.518 GB, free: 285.5 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007927/1.88, allocations: 0.6646 MB / 1.519 GB, free: 284.8 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008406/1.881, allocations: 167.9 kB / 1.519 GB, free: 284.7 MB / 0.948 GB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: cooCoi.UAFroRated.TWatIn = 293.15 cooCoi.UAFroRated.hAirIn = 45300.945. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 12 (cooCoi.UAFroRated.isFulDry,cooCoi.UAFroRated.isFulWet,cooCoi.flowRegime_nominal,$whenCondition2,$whenCondition1,cooCoi.flowRegime,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.canRepeatWeatherFile) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (435): * Single equations (assignments): 423 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 3,1 2,1 3,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.003002/1.884, allocations: 1.108 MB / 1.52 GB, free: 283.5 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001161/1.885, allocations: 438.6 kB / 1.521 GB, free: 283.1 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01539/1.901, allocations: 5.76 MB / 1.526 GB, free: 277.3 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01315/1.914, allocations: 4.627 MB / 1.531 GB, free: 272.6 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-05/1.914, allocations: 0 / 1.531 GB, free: 272.6 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003426/1.917, allocations: 1.072 MB / 1.532 GB, free: 271.5 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009394/1.918, allocations: 63.98 kB / 1.532 GB, free: 271.5 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005394/1.924, allocations: 0.5939 MB / 1.533 GB, free: 270.9 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003896/1.924, allocations: 214.1 kB / 1.533 GB, free: 270.6 MB / 0.948 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01601/1.94, allocations: 5.485 MB / 1.538 GB, free: 265.2 MB / 0.948 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01761/1.958, allocations: 7.877 MB / 1.546 GB, free: 257.2 MB / 0.948 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.005044/1.963, allocations: 2.312 MB / 1.548 GB, free: 254.9 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.003868/1.967, allocations: 2.403 MB / 1.55 GB, free: 252.5 MB / 0.948 GB Notification: Performance of Backend: time 6.71e-07/1.967, allocations: 0 / 1.55 GB, free: 252.5 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.02569/1.993, allocations: 9.237 MB / 1.559 GB, free: 243.7 MB / 0.948 GB Notification: Performance of SimCode: time 0.0169/2.01, allocations: 11.61 MB / 1.571 GB, free: 232.1 MB / 0.948 GB Notification: Performance of Templates: time 0.1696/2.179, allocations: 130.9 MB / 1.699 GB, free: 101.6 MB / 0.948 GB make -j1 -f Buildings_maint.8.0.x_Buildings.Examples.Tutorial.SpaceCooling.System2.makefile (rm -f Buildings_maint.8.0.x_Buildings.Examples.Tutorial.SpaceCooling.System2.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.Tutorial.SpaceCooling.System2.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.Tutorial.SpaceCooling.System2.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.Tutorial.SpaceCooling.System2.sim & ./Buildings_maint.8.0.x_Buildings.Examples.Tutorial.SpaceCooling.System2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.8.0.x_Buildings.Examples.Tutorial.SpaceCooling.System2.pipe 2>&1)