Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|energy.y|stack.cell.1, 1..cell.capacitor.1..v|stack.cell.1, 1..cell.capacitor.2..v|stack.cell.1, 1..cell.limIntegrator.y|stack.cell.1, 1..limIntegrator.y|stack.cell.1, 2..cell.capacitor.1..v|stack.cell.1, 2..cell.capacitor.2..v|stack.cell.1, 2..cell.limIntegrator.y|stack.cell.1, 2..limIntegrator.y|stack.cell.2, 1..cell.capacitor.1..v|stack.cell.2, 1..cell.capacitor.2..v|stack.cell.2, 1..cell.limIntegrator.y|stack.cell.2, 1..limIntegrator.y|stack.cell.2, 2..cell.capacitor.1..v|stack.cell.2, 2..cell.capacitor.2..v|stack.cell.2, 2..cell.limIntegrator.y|stack.cell.2, 2..limIntegrator.y|stack.cell.3, 1..cell.capacitor.1..v|stack.cell.3, 1..cell.capacitor.2..v|stack.cell.3, 1..cell.limIntegrator.y|stack.cell.3, 1..limIntegrator.y|stack.cell.3, 2..cell.capacitor.1..v|stack.cell.3, 2..cell.capacitor.2..v|stack.cell.3, 2..cell.limIntegrator.y|stack.cell.3, 2..limIntegrator.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|energy.y|stack.cell.1, 1..cell.capacitor.1..v|stack.cell.1, 1..cell.capacitor.2..v|stack.cell.1, 1..cell.limIntegrator.y|stack.cell.1, 1..limIntegrator.y|stack.cell.1, 2..cell.capacitor.1..v|stack.cell.1, 2..cell.capacitor.2..v|stack.cell.1, 2..cell.limIntegrator.y|stack.cell.1, 2..limIntegrator.y|stack.cell.2, 1..cell.capacitor.1..v|stack.cell.2, 1..cell.capacitor.2..v|stack.cell.2, 1..cell.limIntegrator.y|stack.cell.2, 1..limIntegrator.y|stack.cell.2, 2..cell.capacitor.1..v|stack.cell.2, 2..cell.capacitor.2..v|stack.cell.2, 2..cell.limIntegrator.y|stack.cell.2, 2..limIntegrator.y|stack.cell.3, 1..cell.capacitor.1..v|stack.cell.3, 1..cell.capacitor.2..v|stack.cell.3, 1..cell.limIntegrator.y|stack.cell.3, 1..limIntegrator.y|stack.cell.3, 2..cell.capacitor.1..v|stack.cell.3, 2..cell.capacitor.2..v|stack.cell.3, 2..cell.limIntegrator.y|stack.cell.3, 2..limIntegrator.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001258/0.001257, allocations: 96.23 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001562/0.001562, allocations: 205.4 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.519/1.519, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003078/0.000308, allocations: 4 kB / 306.6 MB, free: 1.426 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1546/0.155, allocations: 51.49 MB / 358.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC): time 0.01369/0.1687, allocations: 9.222 MB / 367.3 MB, free: 4.676 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00881/0.1776, allocations: 3.618 MB / 370.9 MB, free: 1.051 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001443/0.1791, allocations: 31.81 kB / 370.9 MB, free: 1.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2572/0.4364, allocations: 4.975 MB / 375.9 MB, free: 12.5 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Electrical/Batteries/BatteryStacks/CellRCStack.mo:14:26-14:33:writable] Warning: 'each' used when modifying non-array element v. Notification: Performance of NFTyping.typeBindings: time 0.002668/0.4391, allocations: 495.8 kB / 376.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001274/0.4404, allocations: 316.5 kB / 376.7 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01619/0.4566, allocations: 10.03 MB / 386.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006412/0.463, allocations: 4.116 MB / 390.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006806/0.4699, allocations: 2.884 MB / 393.7 MB, free: 8.742 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007036/0.4769, allocations: 3.008 MB / 396.7 MB, free: 6.148 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002091/0.4791, allocations: 240 kB / 397 MB, free: 5.914 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00312/0.4822, allocations: 285 kB / 397.2 MB, free: 5.648 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002761/0.485, allocations: 2.138 MB / 399.4 MB, free: 3.895 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002949/0.488, allocations: 1.753 MB / 401.1 MB, free: 2.375 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01328/0.5012, allocations: 12.77 MB / 413.9 MB, free: 5.648 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.5013, allocations: 4 kB / 413.9 MB, free: 5.645 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.437e-06/0.5013, allocations: 2.734 kB / 413.9 MB, free: 5.645 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0005744/0.5019, allocations: 0 / 413.9 MB, free: 5.645 MB / 318.1 MB Error: Too few equations, under-determined system. The model has 983 equation(s) and 1013 variable(s). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Electrical/Batteries/Examples/CCCV_StackRC.mo:54:3-57:22:writable] Error: stack.stackBus.cellBus.T = busTranscription.stackBus.cellBus.T has size 1 but 0 variables ()