Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Examples.Tutorial.SpaceCooling.System2.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.Examples.Tutorial.SpaceCooling.System2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.Tutorial.SpaceCooling.System2") translateModel(Buildings.Examples.Tutorial.SpaceCooling.System2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Examples.Tutorial.SpaceCooling.System2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 105.6 kB / 16.36 MB, free: 6.309 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: 187.4 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.258/1.258, allocations: 205.1 MB / 223.2 MB, free: 12.22 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.716/1.716, allocations: 292.3 MB / 0.5496 GB, free: 17.46 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.001432/0.001433, allocations: 63.91 kB / 0.6729 GB, free: 5.789 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2026/0.204, allocations: 114.6 MB / 0.7848 GB, free: 3.121 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.SpaceCooling.System2): time 0.6462/0.8502, allocations: 357.6 MB / 1.134 GB, free: 3.953 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.5094/1.36, allocations: 41.24 MB / 1.174 GB, free: 26.19 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.009885/1.37, allocations: 164.5 kB / 1.174 GB, free: 26.19 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.008125/1.378, allocations: 2.862 MB / 1.177 GB, free: 26.14 MB / 0.92 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.02312/1.401, allocations: 8.642 MB / 1.186 GB, free: 25.85 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.01646/1.417, allocations: 6.519 MB / 1.192 GB, free: 25.71 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.01863/1.436, allocations: 12.6 MB / 1.204 GB, free: 25.68 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00741/1.444, allocations: 5.186 MB / 1.209 GB, free: 25.12 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01345/1.457, allocations: 6.135 MB / 1.215 GB, free: 25.04 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007802/1.465, allocations: 4.01 MB / 1.219 GB, free: 24.72 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.001692/1.467, allocations: 0.6295 MB / 1.22 GB, free: 24.72 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01786/1.484, allocations: 8.512 MB / 1.228 GB, free: 24.63 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.002952/1.487, allocations: 1.87 MB / 1.23 GB, free: 24.41 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.005505/1.493, allocations: 3.303 MB / 1.233 GB, free: 23.53 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.02008/1.513, allocations: 11.78 MB / 1.245 GB, free: 19.25 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/1.513, allocations: 4.438 kB / 1.245 GB, free: 19.25 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.443e-06/1.513, allocations: 3.938 kB / 1.245 GB, free: 19.24 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0001759/1.513, allocations: 0 / 1.245 GB, free: 19.24 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: 1020 * Number of variables: 1020 Notification: Performance of Generate backend data structure: time 0.01458/1.528, allocations: 6.891 MB / 1.252 GB, free: 15.5 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/1.528, allocations: 8.75 kB / 1.252 GB, free: 15.5 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02114/1.549, allocations: 3.198 MB / 1.255 GB, free: 14.21 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009756/1.559, allocations: 4.241 MB / 1.259 GB, free: 12.48 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003382/1.559, allocations: 317.4 kB / 1.259 GB, free: 12.48 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001587/1.561, allocations: 419.6 kB / 1.26 GB, free: 12.47 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01266/1.573, allocations: 5.65 MB / 1.265 GB, free: 7.906 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.388e-05/1.574, allocations: 7 kB / 1.265 GB, free: 7.902 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000433/1.574, allocations: 160 kB / 1.265 GB, free: 7.746 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.391e-05/1.574, allocations: 159.8 kB / 1.265 GB, free: 7.59 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01506/1.589, allocations: 6.264 MB / 1.271 GB, free: 1.34 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.04044/1.63, allocations: 21.97 MB / 1.293 GB, free: 10.82 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01033/1.64, allocations: 4.305 MB / 1.297 GB, free: 6.426 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006383/1.646, allocations: 2.386 MB / 1.299 GB, free: 4.031 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0161/1.663, allocations: 7.99 MB / 1.307 GB, free: 11.89 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00736/1.67, allocations: 2.63 MB / 1.31 GB, free: 9.215 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=304): time 7.294e-06/1.67, allocations: 0 / 1.31 GB, free: 9.215 MB / 0.9669 GB Notification: Performance of matching and sorting (n=304): time 0.02454/1.695, allocations: 7.312 MB / 1.317 GB, free: 1.789 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001461/1.695, allocations: 321.1 kB / 1.317 GB, free: 1.406 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008/1.703, allocations: 3.621 MB / 1.321 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0006438/1.703, allocations: 101.7 kB / 1.321 GB, free: 13.66 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.002367/1.706, allocations: 2.049 MB / 1.323 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.001444/1.707, allocations: 1.029 MB / 1.324 GB, free: 10.59 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002536/1.71, allocations: 0.7538 MB / 1.325 GB, free: 9.824 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001052/1.71, allocations: 309.1 kB / 1.325 GB, free: 9.52 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007045/1.717, allocations: 2.216 MB / 1.327 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007649/1.725, allocations: 2.959 MB / 1.33 GB, free: 4.094 MB / 0.9825 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.01591/1.741, allocations: 5.426 MB / 1.335 GB, free: 14.5 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.075e-05/1.741, allocations: 4 kB / 1.335 GB, free: 14.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=449) (initialization): time 0.01928/1.76, allocations: 5.999 MB / 1.341 GB, free: 8.547 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.134e-05/1.76, allocations: 12.78 kB / 1.341 GB, free: 8.535 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.754e-05/1.76, allocations: 16 kB / 1.341 GB, free: 8.52 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001745/1.762, allocations: 353.8 kB / 1.342 GB, free: 8.16 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00733/1.769, allocations: 1.242 MB / 1.343 GB, free: 6.969 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006228/1.775, allocations: 6.901 MB / 1.349 GB, free: 15.58 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007251/1.783, allocations: 0.7119 MB / 1.35 GB, free: 14.87 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006479/1.783, allocations: 171.9 kB / 1.35 GB, free: 14.7 MB / 1.014 GB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: cooCoi.UAFroRated.TAirIn = 293.15 cooCoi.UAFroRated.TWatIn = 293.15. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.008922/1.792, allocations: 3.023 MB / 1.353 GB, free: 11.68 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.007364/1.8, allocations: 2.909 MB / 1.356 GB, free: 8.52 MB / 1.014 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_lambda0): time 0.01602/1.816, allocations: 5.341 MB / 1.361 GB, free: 3.008 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.375e-05/1.816, allocations: 4 kB / 1.361 GB, free: 3.004 MB / 1.014 GB Notification: Performance of matching and sorting (n=449) (initialization_lambda0): time 0.01976/1.835, allocations: 5.876 MB / 1.367 GB, free: 13.16 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.005e-05/1.835, allocations: 12 kB / 1.367 GB, free: 13.15 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-05/1.836, allocations: 15.94 kB / 1.367 GB, free: 13.14 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001579/1.837, allocations: 335.2 kB / 1.367 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007222/1.844, allocations: 1.211 MB / 1.369 GB, free: 11.63 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006814/1.851, allocations: 7.427 MB / 1.376 GB, free: 3.629 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007918/1.859, allocations: 0.6445 MB / 1.376 GB, free: 2.988 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009037/1.86, allocations: 163.9 kB / 1.377 GB, free: 2.828 MB / 1.029 GB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization_lambda0 system: cooCoi.UAFroRated.TAirIn = 293.15 cooCoi.UAFroRated.TWatIn = 293.15. 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.isFulWet,cooCoi.UAFroRated.isFulDry,cooCoi.flowRegime_nominal,weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,cooCoi.flowRegime,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (433): * Single equations (assignments): 421 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * 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): 2 systems {1, 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): 5 systems {(1,1), (1,3), (1,2), (1,3), (1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.001806/1.862, allocations: 404.2 kB / 1.377 GB, free: 2.473 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002193/1.864, allocations: 442.5 kB / 1.377 GB, free: 2.035 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01886/1.883, allocations: 5.518 MB / 1.383 GB, free: 12.47 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01443/1.897, allocations: 4.473 MB / 1.387 GB, free: 7.953 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.304e-05/1.897, allocations: 4 kB / 1.387 GB, free: 7.949 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003209/1.901, allocations: 1.057 MB / 1.388 GB, free: 6.867 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001572/1.902, allocations: 63.17 kB / 1.388 GB, free: 6.809 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005944/1.908, allocations: 411 kB / 1.389 GB, free: 6.41 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000453/1.909, allocations: 210.2 kB / 1.389 GB, free: 6.203 MB / 1.045 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01921/1.928, allocations: 5.25 MB / 1.394 GB, free: 0.9492 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.02088/1.949, allocations: 7.635 MB / 1.401 GB, free: 9.254 MB / 1.061 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00605/1.955, allocations: 2.233 MB / 1.404 GB, free: 7.008 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.00587/1.961, allocations: 2.446 MB / 1.406 GB, free: 4.559 MB / 1.061 GB Notification: Performance of Backend: time 7.01e-07/1.961, allocations: 3.938 kB / 1.406 GB, free: 4.555 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.03368/1.995, allocations: 9.138 MB / 1.415 GB, free: 11.87 MB / 1.076 GB Notification: Performance of SimCode: time 0.02454/2.019, allocations: 9.822 MB / 1.425 GB, free: 2.082 MB / 1.076 GB Notification: Performance of Templates: time 0.5752/2.594, allocations: 135.5 MB / 1.557 GB, free: 0.5549 GB / 1.201 GB make -j1 -f Buildings_8_Buildings.Examples.Tutorial.SpaceCooling.System2.makefile (rm -f Buildings_8_Buildings.Examples.Tutorial.SpaceCooling.System2.pipe ; mkfifo Buildings_8_Buildings.Examples.Tutorial.SpaceCooling.System2.pipe ; head -c 1048576 < Buildings_8_Buildings.Examples.Tutorial.SpaceCooling.System2.pipe >> ../files/Buildings_8_Buildings.Examples.Tutorial.SpaceCooling.System2.sim & ./Buildings_8_Buildings.Examples.Tutorial.SpaceCooling.System2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Examples.Tutorial.SpaceCooling.System2.pipe 2>&1)