Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 107.6 kB / 21.2 MB, free: 0.6641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001429/0.001429, allocations: 208.8 kB / 24.49 MB, free: 3.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.553/1.553, allocations: 230.6 MB / 258.3 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Stack,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|energy.y|stack.cell.1, 1..cell.limIntegrator.y|stack.cell.1, 1..limIntegrator.y|stack.cell.1, 2..cell.limIntegrator.y|stack.cell.1, 2..limIntegrator.y|stack.cell.2, 1..cell.limIntegrator.y|stack.cell.2, 1..limIntegrator.y|stack.cell.2, 2..cell.limIntegrator.y|stack.cell.2, 2..limIntegrator.y|stack.cell.3, 1..cell.limIntegrator.y|stack.cell.3, 1..limIntegrator.y|stack.cell.3, 2..cell.limIntegrator.y|stack.cell.3, 2..limIntegrator.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Stack,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|energy.y|stack.cell.1, 1..cell.limIntegrator.y|stack.cell.1, 1..limIntegrator.y|stack.cell.1, 2..cell.limIntegrator.y|stack.cell.1, 2..limIntegrator.y|stack.cell.2, 1..cell.limIntegrator.y|stack.cell.2, 1..limIntegrator.y|stack.cell.2, 2..cell.limIntegrator.y|stack.cell.2, 2..limIntegrator.y|stack.cell.3, 1..cell.limIntegrator.y|stack.cell.3, 1..limIntegrator.y|stack.cell.3, 2..cell.limIntegrator.y|stack.cell.3, 2..limIntegrator.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack") [Timeout 660] "Notification: Performance of FrontEnd - Absyn->SCode: time 3.109e-05/3.109e-05, allocations: 6.219 kB / 378.9 MB, free: 2.547 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.2102/0.2102, allocations: 8.765 MB / 387.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00546/0.2157, allocations: 3.351 MB / 391 MB, free: 8.426 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001238/0.2169, allocations: 34.97 kB / 391.1 MB, free: 8.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0032/0.2201, allocations: 1.154 MB / 392.2 MB, free: 8.062 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002054/0.2222, allocations: 0.6811 MB / 392.9 MB, free: 7.766 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001408/0.2236, allocations: 496.5 kB / 393.4 MB, free: 7.461 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007939/0.2315, allocations: 6.931 MB / 400.3 MB, free: 4.547 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003046/0.2346, allocations: 1.257 MB / 401.6 MB, free: 3.613 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009153/0.2437, allocations: 6.112 MB / 407.7 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003539/0.2473, allocations: 2.035 MB / 409.7 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001233/0.2485, allocations: 295.9 kB / 410 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00388/0.2524, allocations: 1.046 MB / 411.1 MB, free: 13.47 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.006788/0.2592, allocations: 4.719 MB / 415.8 MB, free: 8.723 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.00257/0.2617, allocations: 2.482 MB / 418.3 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004796/0.2622, allocations: 140 kB / 418.4 MB, free: 6.082 MB / 318.1 MB Notification: Performance of FrontEnd: time 0.0003289/0.2626, allocations: 47.77 kB / 418.4 MB, free: 6.035 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 837 (412) * Number of variables: 837 (187) Notification: Performance of [SIM] Bindings: time 0.0216/0.2842, allocations: 18.71 MB / 437.2 MB, free: 2.957 MB / 334.1 MB Notification: Performance of [SIM] FunctionAlias: time 0.001979/0.2861, allocations: 1.452 MB / 438.6 MB, free: 1.477 MB / 334.1 MB Notification: Performance of [SIM] Early Inline: time 0.00779/0.2939, allocations: 6.569 MB / 445.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of [SIM] Simplify 1: time 0.002043/0.296, allocations: 1.062 MB / 446.2 MB, free: 9.691 MB / 350.1 MB Notification: Performance of [SIM] Alias: time 0.00968/0.3057, allocations: 6.643 MB / 452.9 MB, free: 2.711 MB / 350.1 MB Notification: Performance of [SIM] Simplify 2: time 0.001592/0.3072, allocations: 0.9583 MB / 453.8 MB, free: 1.656 MB / 350.1 MB Notification: Performance of [SIM] Remove Stream: time 0.0008681/0.3081, allocations: 0.6412 MB / 454.5 MB, free: 0.957 MB / 350.1 MB Notification: Performance of [SIM] Detect States: time 0.001601/0.3097, allocations: 1.459 MB / 455.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of [SIM] Events: time 0.0007495/0.3105, allocations: 0.5193 MB / 456.5 MB, free: 14.94 MB / 366.1 MB Notification: Performance of [SIM] Partitioning: time 0.003282/0.3137, allocations: 2.771 MB / 459.2 MB, free: 12.05 MB / 366.1 MB Error: Internal error NBSlice.locationToIndex failed because value of 3 is too large for size 2. Error: Internal error NBSlice.resolveDependency failed for: stack.cell[$i1, $i2].i. Error: Internal error NBAdjacency.Matrix.upgradeRow failed for: [FOR-] (6) ($RES_BND_470) [----] for {$i1 in 1:2, $i2 in 1:3} loop [----] [SCAL] (1) stack.cell[$i1, $i2].i = stack.cell[$i2, $i1].p.i ($RES_BND_471) [----] end for; " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 2.704858797136694] Failed to read output from testmodel.py, exit status != 0: ['time', 'energy.y', 'stack.cell[1, 1].cell.limIntegrator.y', 'stack.cell[1, 1].limIntegrator.y', 'stack.cell[1, 2].cell.limIntegrator.y', 'stack.cell[1, 2].limIntegrator.y', 'stack.cell[2, 1].cell.limIntegrator.y', 'stack.cell[2, 1].limIntegrator.y', 'stack.cell[2, 2].cell.limIntegrator.y', 'stack.cell[2, 2].limIntegrator.y', 'stack.cell[3, 1].cell.limIntegrator.y', 'stack.cell[3, 1].limIntegrator.y', 'stack.cell[3, 2].cell.limIntegrator.y', 'stack.cell[3, 2].limIntegrator.y'] 0.3256003330461681 0.339413037 0.07360183000000001 Calling exit ...