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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.000869/0.0008688, allocations: 178.6 kB / 17.04 MB, free: 5.109 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.183/1.183, allocations: 223.3 MB / 241 MB, free: 10.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007724/0.0007724, allocations: 89.45 kB / 292.2 MB, free: 10.67 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002669/0.0002669, allocations: 11.94 kB / 351.8 MB, free: 15.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1776/0.1779, allocations: 50.41 MB / 402.2 MB, free: 32.52 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC): time 0.006541/0.1845, allocations: 9.918 MB / 412.1 MB, free: 22.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00333/0.1879, allocations: 3.451 MB / 415.6 MB, free: 19.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004075/0.1883, allocations: 27.81 kB / 415.6 MB, free: 19.1 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004894/0.1932, allocations: 5.487 MB / 421.1 MB, free: 13.61 MB / 298.7 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.000823/0.194, allocations: 409.4 kB / 421.5 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000705/0.1947, allocations: 319.3 kB / 421.8 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01491/0.2097, allocations: 19.25 MB / 441.1 MB, free: 9.609 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008417/0.2181, allocations: 7.872 MB / 448.9 MB, free: 1.668 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.04969/0.2678, allocations: 48.35 MB / 497.3 MB, free: 1.254 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00355/0.2714, allocations: 2.72 MB / 0.4883 GB, free: 14.52 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006363/0.2721, allocations: 324 kB / 0.4886 GB, free: 14.21 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001388/0.2735, allocations: 0.5114 MB / 0.4891 GB, free: 13.7 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001829/0.2753, allocations: 2.606 MB / 0.4916 GB, free: 11.08 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001632/0.277, allocations: 1.743 MB / 0.4933 GB, free: 9.328 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1492/0.4262, allocations: 13.78 MB / 0.5068 GB, free: 80.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.4262, allocations: 0 / 0.5068 GB, free: 80.77 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4262, allocations: 3.656 kB / 0.5068 GB, free: 80.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003494/0.4266, allocations: 0 / 0.5068 GB, free: 80.77 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 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 ()