Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell.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.001339/0.001339, allocations: 104.8 kB / 19.77 MB, free: 2.539 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.001347/0.001347, allocations: 191.6 kB / 22.95 MB, free: 5.617 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.223/1.223, allocations: 225.6 MB / 251.6 MB, free: 13.51 MB / 206.1 MB " [Timeout remaining time 179] 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_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_Cell,tolerance=1e-06,outputFormat="mat",numberOfIntervals=12000,variableFilter="time|cell.cell.limIntegrator.y|cell.limIntegrator.y|energy.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell") [Timeout 660] "Notification: Performance of FrontEnd - Absyn->SCode: time 2.068e-05/2.068e-05, allocations: 4.25 kB / 369.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Cell): time 0.006334/0.006355, allocations: 5.549 MB / 374.9 MB, free: 4.664 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002269/0.008624, allocations: 1.742 MB / 376.7 MB, free: 2.918 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001813/0.008805, allocations: 15.94 kB / 376.7 MB, free: 2.902 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008413/0.009647, allocations: 0.5136 MB / 377.2 MB, free: 2.387 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004979/0.01014, allocations: 358.2 kB / 377.6 MB, free: 2.035 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000624/0.01077, allocations: 373.4 kB / 377.9 MB, free: 1.676 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009471/0.01172, allocations: 1.068 MB / 379 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003255/0.01204, allocations: 209.4 kB / 379.2 MB, free: 396 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1192/0.1312, allocations: 416 kB / 379.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005601/0.1318, allocations: 414.7 kB / 380 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001359/0.1319, allocations: 76.5 kB / 380.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009005/0.1328, allocations: 0.8395 MB / 380.9 MB, free: 14.32 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.000608/0.1334, allocations: 1.21 MB / 382.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002673/0.1337, allocations: 0.6923 MB / 382.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001052/0.1338, allocations: 119.3 kB / 382.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001381/0.134, allocations: 33.83 kB / 383 MB, free: 13.27 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: 120 (120) * Number of variables: 120 (120) Notification: Performance of Bindings: time 0.001689/0.1356, allocations: 2.774 MB / 385.8 MB, free: 11.87 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.000176/0.1358, allocations: 252.8 kB / 386 MB, free: 11.86 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0006786/0.1365, allocations: 0.9076 MB / 386.9 MB, free: 11.79 MB / 302.1 MB Notification: Performance of Simplify 1: time 0.0001989/0.1367, allocations: 222.3 kB / 387.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of Alias: time 0.002548/0.1392, allocations: 2.647 MB / 389.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of Simplify 2: time 0.0001069/0.1394, allocations: 117.1 kB / 389.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of Remove Stream: time 7.724e-05/0.1394, allocations: 116.2 kB / 390 MB, free: 10.31 MB / 302.1 MB Notification: Performance of Detect States: time 0.0002119/0.1396, allocations: 216.9 kB / 390.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of Events: time 0.0001984/0.1398, allocations: 195.4 kB / 390.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002856/0.1401, allocations: 405.6 kB / 390.8 MB, free: 9.703 MB / 302.1 MB Notification: Performance of Causalize: time 0.001002/0.1411, allocations: 1.087 MB / 391.9 MB, free: 9.211 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0003819/0.1415, allocations: 0.4966 MB / 392.4 MB, free: 8.91 MB / 302.1 MB Notification: Performance of Simplify: time 0.001982/0.1435, allocations: 0.7409 MB / 393.1 MB, free: 8.484 MB / 302.1 MB Notification: Performance of Inline: time 0.0006038/0.1441, allocations: 0.7762 MB / 393.9 MB, free: 8 MB / 302.1 MB Notification: Performance of Partitioning: time 5.516e-05/0.1442, allocations: 37.44 kB / 393.9 MB, free: 7.98 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0001238/0.1443, allocations: 200.7 kB / 394.1 MB, free: 7.855 MB / 302.1 MB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [SCAL] (1) cccvCharger.CV = $START.cccvCharger.CV ($RES_SRT_150); Notification: Performance of Causalize: time 0.008496/0.1528, allocations: 9.129 MB / 403.3 MB, free: 4.742 MB / 302.1 MB Error: Internal error NBEquation.Equation.getResidualExp failed for: [-IF-] (1) ($RES_SIM_67) [----] if cccvCharger.CV then [----] [SCAL] (1) cccvCharger.v = cccvCharger.Vend ($RES_SIM_68) [----] else [----] [SCAL] (1) cccvCharger.i = -cccvCharger.I * (if $TEV_0 then 0.0 else min(1.0, (time - cccvCharger.startTime) / cccvCharger.rampTime)) ($RES_SIM_69) [----] end if; Error: Internal error NBInitialization.main failed to apply modules! " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 1.9865021212026477]