Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.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) 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(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_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008989/0.0008987, allocations: 91.14 kB / 16.95 MB, free: 5.949 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.0009401/0.0009402, allocations: 181.9 kB / 17.84 MB, free: 5.613 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.621/1.621, allocations: 223.2 MB / 241.8 MB, free: 316 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003916/0.0003919, allocations: 8 kB / 301.4 MB, free: 6.449 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.142, allocations: 50.42 MB / 351.9 MB, free: 4.012 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC): time 0.01426/0.1563, allocations: 9.924 MB / 361.8 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007367/0.1638, allocations: 3.449 MB / 365.2 MB, free: 6.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001389/0.1652, allocations: 31.81 kB / 365.3 MB, free: 6.559 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009094/0.1743, allocations: 5.475 MB / 370.8 MB, free: 1.074 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.002655/0.177, allocations: 409.3 kB / 371.2 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001461/0.1785, allocations: 326 kB / 371.5 MB, free: 368 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.3405/0.519, allocations: 19.24 MB / 390.7 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009582/0.5287, allocations: 7.873 MB / 398.6 MB, free: 7.219 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.07067/0.5994, allocations: 48.36 MB / 446.9 MB, free: 7.402 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009123/0.6086, allocations: 2.721 MB / 449.7 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003577/0.6122, allocations: 324 kB / 450 MB, free: 4.367 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006114/0.6184, allocations: 0.5029 MB / 450.5 MB, free: 3.875 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006346/0.6248, allocations: 2.613 MB / 453.1 MB, free: 1.262 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006534/0.6313, allocations: 1.835 MB / 454.9 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02029/0.6517, allocations: 13.79 MB / 468.7 MB, free: 2.426 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.588e-06/0.6518, allocations: 0 / 468.7 MB, free: 2.426 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.836e-06/0.6518, allocations: 0 / 468.7 MB, free: 2.426 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006839/0.6525, allocations: 0 / 468.7 MB, free: 2.426 MB / 366.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 4.0.0+maint.om/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 ()