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.00191/0.00191, allocations: 103.6 kB / 21.25 MB, free: 0.5664 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.002502/0.002502, allocations: 211 kB / 24.55 MB, free: 3.828 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.569/1.569, allocations: 230.6 MB / 258.3 MB, free: 7.746 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 2.457e-05/2.457e-05, allocations: 2.281 kB / 379 MB, free: 2.465 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.2173/0.2173, allocations: 8.758 MB / 387.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005308/0.2226, allocations: 3.356 MB / 391.2 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008369/0.2235, allocations: 34.75 kB / 391.2 MB, free: 8.148 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002649/0.2261, allocations: 1.151 MB / 392.3 MB, free: 7.801 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001856/0.228, allocations: 0.6846 MB / 393 MB, free: 7.496 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00113/0.2291, allocations: 494.6 kB / 393.5 MB, free: 7.195 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007894/0.237, allocations: 6.926 MB / 400.4 MB, free: 4.293 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002251/0.2393, allocations: 1.317 MB / 401.7 MB, free: 3.359 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008057/0.2473, allocations: 6.113 MB / 407.9 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003601/0.2509, allocations: 2.152 MB / 410 MB, free: 14.37 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005339/0.2514, allocations: 292 kB / 410.3 MB, free: 14.08 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002834/0.2543, allocations: 1.034 MB / 411.3 MB, free: 13.05 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.005577/0.2599, allocations: 4.712 MB / 416 MB, free: 8.309 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.002789/0.2626, allocations: 2.482 MB / 418.5 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000657/0.2633, allocations: 140 kB / 418.7 MB, free: 5.668 MB / 318.1 MB Notification: Performance of FrontEnd: time 0.0003435/0.2636, allocations: 43.8 kB / 418.7 MB, free: 5.625 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.02367/0.2873, allocations: 18.85 MB / 437.6 MB, free: 2.414 MB / 334.1 MB Notification: Performance of [SIM] FunctionAlias: time 0.002081/0.2894, allocations: 1.452 MB / 439 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of [SIM] Early Inline: time 0.008007/0.2974, allocations: 6.561 MB / 445.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of [SIM] Simplify 1: time 0.002902/0.3003, allocations: 1.194 MB / 446.8 MB, free: 9.023 MB / 350.1 MB Notification: Performance of [SIM] Alias: time 0.01049/0.3108, allocations: 6.741 MB / 453.5 MB, free: 1.957 MB / 350.1 MB Notification: Performance of [SIM] Simplify 2: time 0.001826/0.3126, allocations: 1.102 MB / 454.6 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of [SIM] Remove Stream: time 0.0008666/0.3135, allocations: 0.649 MB / 455.2 MB, free: 52 kB / 350.1 MB Notification: Performance of [SIM] Detect States: time 0.001855/0.3153, allocations: 1.441 MB / 456.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of [SIM] Events: time 0.0008547/0.3162, allocations: 0.5397 MB / 457.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of [SIM] Partitioning: time 0.003148/0.3193, allocations: 2.771 MB / 460 MB, free: 11.14 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.7628789439913817] 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.3300024960190058 0.34395163100000004 0.07717251700000001 Calling exit ...