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.0009357/0.0009357, allocations: 89.55 kB / 17.63 MB, free: 6.16 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001047/0.001048, allocations: 201.6 kB / 18.54 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.63/1.63, allocations: 227.3 MB / 246.6 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002642/0.0002643, allocations: 8 kB / 307.3 MB, free: 1.398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1229, allocations: 51.49 MB / 358.8 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC): time 0.01358/0.1366, allocations: 9.954 MB / 368.7 MB, free: 3.918 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008393/0.145, allocations: 3.613 MB / 372.4 MB, free: 304 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001563/0.1466, allocations: 27.88 kB / 372.4 MB, free: 276 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2603/0.4069, allocations: 5.473 MB / 377.9 MB, free: 13.18 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.002719/0.4097, allocations: 443.8 kB / 378.3 MB, free: 13.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001609/0.4113, allocations: 326.2 kB / 378.6 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02706/0.4384, allocations: 19.28 MB / 397.9 MB, free: 4.793 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01129/0.4497, allocations: 7.882 MB / 405.8 MB, free: 13.09 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.06542/0.5152, allocations: 48.36 MB / 454.1 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006906/0.5222, allocations: 2.729 MB / 456.9 MB, free: 10.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001681/0.5239, allocations: 328 kB / 457.2 MB, free: 9.816 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003182/0.5271, allocations: 0.5146 MB / 457.7 MB, free: 9.309 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002759/0.5299, allocations: 2.611 MB / 460.3 MB, free: 6.695 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003886/0.5338, allocations: 1.747 MB / 462.1 MB, free: 4.938 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01754/0.5514, allocations: 13.85 MB / 475.9 MB, free: 7.379 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.163e-05/0.5514, allocations: 0 / 475.9 MB, free: 7.379 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.378e-06/0.5515, allocations: 0 / 475.9 MB, free: 7.379 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007439/0.5522, allocations: 4 kB / 475.9 MB, free: 7.375 MB / 382.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 ()