Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00165/0.00165, allocations: 104 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002068/0.002068, allocations: 192.2 kB / 24.53 MB, free: 3.852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 225.7 MB / 253.4 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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_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.0.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.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack") [Timeout 660] "Notification: Performance of FrontEnd - Absyn->SCode: time 2.251e-05/2.251e-05, allocations: 2.281 kB / 371.7 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01232/0.01235, allocations: 8.721 MB / 380.4 MB, free: 416 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2262/0.2386, allocations: 3.174 MB / 383.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008877/0.2395, allocations: 31.22 kB / 383.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003166/0.2426, allocations: 1.142 MB / 384.8 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001901/0.2445, allocations: 0.656 MB / 385.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001539/0.2461, allocations: 488.1 kB / 385.9 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008617/0.2547, allocations: 6.95 MB / 392.9 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002338/0.257, allocations: 1.319 MB / 394.2 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009513/0.2665, allocations: 6.243 MB / 400.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003644/0.2702, allocations: 2.166 MB / 402.6 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006045/0.2708, allocations: 291.5 kB / 402.9 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002688/0.2735, allocations: 1.034 MB / 403.9 MB, free: 8.059 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.003762/0.2772, allocations: 4.696 MB / 408.6 MB, free: 3.336 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.001733/0.279, allocations: 2.474 MB / 411.1 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005792/0.2795, allocations: 140 kB / 411.2 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0003132/0.2799, allocations: 47.72 kB / 411.3 MB, free: 0.6562 MB / 302.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.02469/0.3045, allocations: 18.82 MB / 430.1 MB, free: 13.48 MB / 334.1 MB Notification: Performance of [SIM] FunctionAlias: time 0.003407/0.3079, allocations: 1.449 MB / 431.5 MB, free: 12 MB / 334.1 MB Notification: Performance of [SIM] Early Inline: time 0.009124/0.3171, allocations: 6.58 MB / 438.1 MB, free: 5.359 MB / 334.1 MB Notification: Performance of [SIM] Simplify 1: time 0.002794/0.3199, allocations: 1.186 MB / 439.3 MB, free: 4.082 MB / 334.1 MB Notification: Performance of [SIM] Alias: time 0.01098/0.3308, allocations: 6.729 MB / 446 MB, free: 13.02 MB / 350.1 MB Notification: Performance of [SIM] Simplify 2: time 0.002076/0.3329, allocations: 1.105 MB / 447.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of [SIM] Remove Stream: time 0.0008866/0.3338, allocations: 0.6451 MB / 447.8 MB, free: 11.12 MB / 350.1 MB Notification: Performance of [SIM] Detect States: time 0.00185/0.3357, allocations: 1.452 MB / 449.2 MB, free: 9.605 MB / 350.1 MB Notification: Performance of [SIM] Events: time 0.0008631/0.3365, allocations: 0.5207 MB / 449.7 MB, free: 9.086 MB / 350.1 MB Notification: Performance of [SIM] Partitioning: time 0.003358/0.3399, allocations: 2.775 MB / 452.5 MB, free: 6.195 MB / 350.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.729044616979081] 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.3523945900378749 0.366944458 0.083705849 Calling exit ...