Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001017/0.001017, allocations: 194.4 kB / 18.04 MB, free: 3.785 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 226.5 MB / 245.3 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008792/0.0008793, allocations: 104.2 kB / 297.4 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002766/0.0002767, allocations: 12 kB / 357.4 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2922/0.2925, allocations: 51.29 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC): time 0.008356/0.3009, allocations: 9.945 MB / 418.6 MB, free: 17.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005479/0.3064, allocations: 3.61 MB / 422.3 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00108/0.3075, allocations: 23.88 kB / 422.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007109/0.3146, allocations: 5.592 MB / 427.9 MB, free: 8.523 MB / 298.7 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.002244/0.3169, allocations: 445.3 kB / 428.3 MB, free: 8.086 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001168/0.3181, allocations: 326.6 kB / 428.6 MB, free: 7.773 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02349/0.3416, allocations: 20.25 MB / 448.9 MB, free: 3.488 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01232/0.354, allocations: 8.928 MB / 457.8 MB, free: 10.47 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.06638/0.4205, allocations: 49.42 MB / 0.4953 GB, free: 8.984 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006483/0.427, allocations: 2.726 MB / 0.498 GB, free: 6.246 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002021/0.4291, allocations: 332 kB / 0.4983 GB, free: 5.922 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003093/0.4322, allocations: 0.5153 MB / 0.4988 GB, free: 5.406 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002974/0.4352, allocations: 2.605 MB / 0.5014 GB, free: 2.793 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.2691/0.7042, allocations: 3.848 MB / 0.5051 GB, free: 81.54 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01918/0.7235, allocations: 13.84 MB / 0.5186 GB, free: 77.19 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.608e-06/0.7235, allocations: 0 / 0.5186 GB, free: 77.19 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.716e-06/0.7235, allocations: 0 / 0.5186 GB, free: 77.19 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0008828/0.7244, allocations: 0 / 0.5186 GB, free: 77.19 MB / 378.7 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 ()