Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001154/0.001154, allocations: 106.7 kB / 16.42 MB, free: 6.48 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.00113/0.00113, allocations: 190 kB / 17.36 MB, free: 5.711 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.387/1.387, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.279/2.279, allocations: 390.2 MB / 0.6654 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.28e-05/3.282e-05, allocations: 6.281 kB / 0.9515 GB, free: 7.75 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.003713/0.003754, allocations: 2.268 MB / 0.9537 GB, free: 5.465 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001609/0.005375, allocations: 0.9468 MB / 0.9546 GB, free: 4.512 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001553/0.005541, allocations: 11.94 kB / 0.9546 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001943/0.005743, allocations: 63.28 kB / 0.9547 GB, free: 4.438 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002448/0.005995, allocations: 43.53 kB / 0.9547 GB, free: 4.395 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005264/0.006529, allocations: 279.6 kB / 0.955 GB, free: 4.121 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0005591/0.007116, allocations: 0.6089 MB / 0.9556 GB, free: 3.508 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006156/0.00774, allocations: 0.5047 MB / 0.9561 GB, free: 3 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002864/0.008035, allocations: 271.3 kB / 0.9563 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002899/0.008334, allocations: 258.9 kB / 0.9566 GB, free: 2.48 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 8.871e-05/0.00843, allocations: 76 kB / 0.9566 GB, free: 2.406 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.008575, allocations: 87.98 kB / 0.9567 GB, free: 2.32 MB / 0.7325 GB Notification: Performance of combineBinaries: time 0.0004769/0.00906, allocations: 0.7109 MB / 0.9574 GB, free: 1.602 MB / 0.7325 GB Notification: Performance of replaceArrayConstructors: time 0.0002186/0.009285, allocations: 433.3 kB / 0.9578 GB, free: 1.172 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 8.679e-05/0.009378, allocations: 79.75 kB / 0.9579 GB, free: 1.094 MB / 0.7325 GB Notification: Performance of FrontEnd: time 0.0001161/0.009499, allocations: 75.55 kB / 0.958 GB, free: 1.02 MB / 0.7325 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.002092/0.0116, allocations: 2.145 MB / 0.9601 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of FunctionAlias: time 0.0002636/0.01187, allocations: 207.7 kB / 0.9603 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of Early Inline: time 0.001492/0.01337, allocations: 1.593 MB / 0.9618 GB, free: 12.91 MB / 0.7481 GB Notification: Performance of simplify1: time 0.0001125/0.01349, allocations: 107.8 kB / 0.9619 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of Alias: time 0.002989/0.01649, allocations: 2.711 MB / 0.9646 GB, free: 9.848 MB / 0.7481 GB Notification: Performance of simplify2: time 7.929e-05/0.01658, allocations: 75.89 kB / 0.9646 GB, free: 9.773 MB / 0.7481 GB Error: Internal error NBDetectStates.collectPreAndPrevious failed because of unexpected expression pre(, time - con.t1.t_dummy}).