Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.SOC|con.y|con.isDay.y",fileNamePrefix="Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.SOC|con.y|con.isDay.y",fileNamePrefix="Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 109.6 kB / 16.42 MB, free: 6.469 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.001122/0.001122, allocations: 187.2 kB / 17.35 MB, free: 5.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.149/1.149, allocations: 222.9 MB / 241.1 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.06/2.06, allocations: 437 MB / 0.7111 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.712e-05/1.714e-05, allocations: 6.219 kB / 1.019 GB, free: 9.469 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002725/0.002749, allocations: 2.272 MB / 1.021 GB, free: 7.184 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001401/0.004161, allocations: 0.9467 MB / 1.022 GB, free: 6.23 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001706/0.004342, allocations: 11.94 kB / 1.022 GB, free: 6.219 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001655/0.004513, allocations: 63.33 kB / 1.022 GB, free: 6.156 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001992/0.004718, allocations: 51.47 kB / 1.022 GB, free: 6.105 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005116/0.005245, allocations: 283.6 kB / 1.023 GB, free: 5.828 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0005145/0.005769, allocations: 0.6011 MB / 1.023 GB, free: 5.227 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005387/0.006314, allocations: 0.4931 MB / 1.024 GB, free: 4.723 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002647/0.006587, allocations: 283.2 kB / 1.024 GB, free: 4.445 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002466/0.006841, allocations: 255 kB / 1.024 GB, free: 4.195 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 9.499e-05/0.006943, allocations: 76 kB / 1.024 GB, free: 4.121 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001299/0.007079, allocations: 87.98 kB / 1.024 GB, free: 4.035 MB / 0.795 GB Notification: Performance of combineBinaries: time 0.0003992/0.007485, allocations: 0.7147 MB / 1.025 GB, free: 3.312 MB / 0.795 GB Notification: Performance of replaceArrayConstructors: time 0.0001909/0.007681, allocations: 429.3 kB / 1.026 GB, free: 2.887 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 8.311e-05/0.007769, allocations: 79.75 kB / 1.026 GB, free: 2.809 MB / 0.795 GB Notification: Performance of FrontEnd: time 9.757e-05/0.007872, allocations: 75.55 kB / 1.026 GB, free: 2.734 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 (131) * Number of variables: 128 (122) Notification: Performance of Bindings: time 0.001792/0.009668, allocations: 2.153 MB / 1.028 GB, free: 476 kB / 0.795 GB Notification: Performance of FunctionAlias: time 0.0002325/0.009908, allocations: 211.7 kB / 1.028 GB, free: 256 kB / 0.795 GB Notification: Performance of Early Inline: time 0.001353/0.01127, allocations: 1.585 MB / 1.03 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of simplify1: time 0.0001247/0.0114, allocations: 107.8 kB / 1.03 GB, free: 14.52 MB / 0.8106 GB Notification: Performance of Alias: time 0.002585/0.01399, allocations: 2.71 MB / 1.032 GB, free: 11.57 MB / 0.8106 GB Notification: Performance of simplify2: time 8.683e-05/0.01409, allocations: 79.89 kB / 1.032 GB, free: 11.49 MB / 0.8106 GB Error: Internal error NBDetectStates.collectPreAndPrevious failed because of unexpected expression pre(, time - con.t1.t_dummy}).