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.001071/0.001071, allocations: 92.53 kB / 16.3 MB, free: 5.543 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.001278/0.001278, allocations: 187.4 kB / 17.2 MB, free: 5.477 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.385/1.385, allocations: 223.2 MB / 241.1 MB, free: 14.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002493/0.0002494, allocations: 8 kB / 300.7 MB, free: 6.234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1107, allocations: 50.41 MB / 351.1 MB, free: 3.809 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC): time 0.009743/0.1205, allocations: 9.177 MB / 360.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005835/0.1264, allocations: 3.462 MB / 363.8 MB, free: 7.125 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00123/0.1277, allocations: 31.81 kB / 363.8 MB, free: 7.094 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009397/0.1371, allocations: 4.984 MB / 368.8 MB, free: 2.102 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.002252/0.1394, allocations: 462.6 kB / 369.2 MB, free: 1.648 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001203/0.1406, allocations: 334.7 kB / 369.6 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2385/0.3791, allocations: 10.01 MB / 379.6 MB, free: 16.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006019/0.3852, allocations: 4.11 MB / 383.7 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00614/0.3914, allocations: 2.877 MB / 386.6 MB, free: 15.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006359/0.3978, allocations: 3.002 MB / 389.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001614/0.3994, allocations: 244.1 kB / 389.8 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002412/0.4018, allocations: 278.6 kB / 390.1 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002359/0.4042, allocations: 2.14 MB / 392.2 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003952/0.4082, allocations: 1.747 MB / 394 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01056/0.4188, allocations: 12.71 MB / 406.7 MB, free: 15.89 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.4188, allocations: 0 / 406.7 MB, free: 15.89 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.4188, allocations: 4 kB / 406.7 MB, free: 15.88 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0006038/0.4195, allocations: 0 / 406.7 MB, free: 15.88 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 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 ()