Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001135/0.001135, allocations: 113.3 kB / 16.43 MB, free: 6.523 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.001087/0.001087, allocations: 183.2 kB / 17.35 MB, free: 5.746 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.137/1.137, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.185/2.185, allocations: 469.8 MB / 0.7431 GB, free: 3.375 MB / 0.6075 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.777e-05/1.778e-05, allocations: 2.281 kB / 1.066 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.BatteryControl): time 0.002714/0.00274, allocations: 2.279 MB / 1.068 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001297/0.004048, allocations: 0.939 MB / 1.069 GB, free: 10.42 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001181/0.004177, allocations: 11.94 kB / 1.069 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001537/0.004337, allocations: 59.33 kB / 1.069 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001909/0.004534, allocations: 51.47 kB / 1.069 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000436/0.004984, allocations: 283.6 kB / 1.069 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0004709/0.005464, allocations: 0.605 MB / 1.07 GB, free: 9.418 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004074/0.00588, allocations: 401 kB / 1.07 GB, free: 9.02 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002337/0.006122, allocations: 275.3 kB / 1.071 GB, free: 8.75 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002156/0.006346, allocations: 255 kB / 1.071 GB, free: 8.5 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 8.442e-05/0.006437, allocations: 72 kB / 1.071 GB, free: 8.43 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001195/0.006563, allocations: 87.98 kB / 1.071 GB, free: 8.344 MB / 0.8419 GB Notification: Performance of combineBinaries: time 0.0003776/0.006947, allocations: 0.7109 MB / 1.072 GB, free: 7.625 MB / 0.8419 GB Notification: Performance of replaceArrayConstructors: time 0.0001789/0.007132, allocations: 441.2 kB / 1.072 GB, free: 7.188 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 7.207e-05/0.007209, allocations: 79.75 kB / 1.072 GB, free: 7.109 MB / 0.8419 GB Notification: Performance of FrontEnd: time 8.239e-05/0.007297, allocations: 71.55 kB / 1.072 GB, free: 7.039 MB / 0.8419 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.001293/0.008595, allocations: 1.45 MB / 1.074 GB, free: 5.469 MB / 0.8419 GB Notification: Performance of FunctionAlias: time 0.0002098/0.00881, allocations: 219.5 kB / 1.074 GB, free: 5.246 MB / 0.8419 GB Notification: Performance of Early Inline: time 0.0009366/0.009754, allocations: 1.065 MB / 1.075 GB, free: 4.145 MB / 0.8419 GB Notification: Performance of simplify1: time 0.0002146/0.009975, allocations: 211.5 kB / 1.075 GB, free: 3.902 MB / 0.8419 GB Notification: Performance of Alias: time 0.001881/0.01186, allocations: 1.682 MB / 1.077 GB, free: 1.977 MB / 0.8419 GB Notification: Performance of simplify2: time 0.0001535/0.01203, allocations: 155.5 kB / 1.077 GB, free: 1.797 MB / 0.8419 GB Error: Internal error NBDetectStates.preFromArgs failed because of unexpected expression pre(time - con.t1.t_dummy).