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.001467/0.001467, allocations: 199.9 kB / 17.38 MB, free: 4.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 226.5 MB / 244.7 MB, free: 6.34 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007561/0.0007561, allocations: 105 kB / 296.8 MB, free: 6.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000216/0.000216, allocations: 4 kB / 356.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1809/0.1811, allocations: 51.3 MB / 408.1 MB, free: 27.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC): time 0.00677/0.1879, allocations: 9.945 MB / 418 MB, free: 17.69 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003823/0.1918, allocations: 3.616 MB / 421.6 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005731/0.1924, allocations: 23.88 kB / 421.6 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006077/0.1985, allocations: 5.588 MB / 427.2 MB, free: 8.465 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.0009864/0.1995, allocations: 437.3 kB / 427.7 MB, free: 8.035 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007392/0.2002, allocations: 327.6 kB / 428 MB, free: 7.719 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02/0.2202, allocations: 20.25 MB / 448.2 MB, free: 3.434 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01037/0.2306, allocations: 8.92 MB / 457.1 MB, free: 10.42 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.05708/0.2877, allocations: 49.43 MB / 0.4947 GB, free: 8.926 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004372/0.2922, allocations: 2.726 MB / 0.4974 GB, free: 6.188 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009611/0.2932, allocations: 328 kB / 0.4977 GB, free: 5.867 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001751/0.2949, allocations: 0.5075 MB / 0.4982 GB, free: 5.359 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002141/0.2971, allocations: 2.621 MB / 0.5007 GB, free: 2.734 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1582/0.4553, allocations: 3.848 MB / 0.5045 GB, free: 81.54 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01062/0.4659, allocations: 13.84 MB / 0.518 GB, free: 77.18 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.193e-06/0.466, allocations: 0.5 kB / 0.518 GB, free: 77.18 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.466, allocations: 0.8125 kB / 0.518 GB, free: 77.18 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004829/0.4665, allocations: 0.5312 kB / 0.518 GB, free: 77.18 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 ()