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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=24000,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=24000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 113.6 kB / 17.69 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 192 kB / 18.63 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.428/1.428, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009987/0.0009989, allocations: 51.27 kB / 302.1 MB, free: 5.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1101, allocations: 49.45 MB / 351.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01194/0.1221, allocations: 10.05 MB / 361.6 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005484/0.1276, allocations: 3.466 MB / 365 MB, free: 6.105 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001025/0.1287, allocations: 27.88 kB / 365 MB, free: 6.078 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00296/0.1316, allocations: 1.175 MB / 366.2 MB, free: 4.898 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001721/0.1334, allocations: 0.6412 MB / 366.9 MB, free: 4.254 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001217/0.1347, allocations: 482.3 kB / 367.3 MB, free: 3.785 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2452/0.3799, allocations: 7.338 MB / 374.7 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005939/0.3859, allocations: 4.467 MB / 379.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00533/0.3913, allocations: 2.841 MB / 382 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006409/0.3977, allocations: 2.92 MB / 384.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002725/0.4005, allocations: 0.6763 MB / 385.6 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003725/0.4042, allocations: 0.7202 MB / 386.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006292/0.4105, allocations: 5.816 MB / 392.1 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01317/0.4237, allocations: 7.179 MB / 399.3 MB, free: 4.129 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0268/0.4506, allocations: 24.87 MB / 424.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.856e-05/0.4507, allocations: 0 / 424.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.4507, allocations: 3.938 kB / 424.2 MB, free: 11.86 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.001103/0.4518, allocations: 0 / 424.2 MB, free: 11.86 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 837 * Number of variables: 837 Notification: Performance of Generate backend data structure: time 0.05888/0.5107, allocations: 18.65 MB / 442.8 MB, free: 9.086 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.706e-05/0.5108, allocations: 15.89 kB / 442.8 MB, free: 9.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006125/0.5169, allocations: 1.547 MB / 444.4 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0466/0.5636, allocations: 17.73 MB / 462.1 MB, free: 6.113 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005908/0.5642, allocations: 336.2 kB / 462.4 MB, free: 5.777 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001619/0.5658, allocations: 327.9 kB / 462.8 MB, free: 5.457 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01527/0.5811, allocations: 6.495 MB / 469.2 MB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.964e-05/0.5813, allocations: 7.281 kB / 469.3 MB, free: 14.76 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008932/0.5822, allocations: 144 kB / 469.4 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.694e-05/0.5823, allocations: 80 kB / 469.5 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01135/0.5936, allocations: 5.131 MB / 474.6 MB, free: 9.422 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07395/0.6676, allocations: 33.39 MB / 0.4961 GB, free: 7.969 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008133/0.6758, allocations: 4.313 MB / 0.5003 GB, free: 3.742 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00463/0.6805, allocations: 2.581 MB / 0.5028 GB, free: 1.168 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001272/0.6806, allocations: 20.67 kB / 0.5028 GB, free: 1.152 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.384e-05/0.6807, allocations: 59.88 kB / 0.5029 GB, free: 1.086 MB / 414.1 MB Notification: Performance of pre-optimization done (n=156): time 3.858e-06/0.6807, allocations: 0 / 0.5029 GB, free: 1.086 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.01951/0.7002, allocations: 7.53 MB / 0.5103 GB, free: 9.512 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004102/0.7007, allocations: 0.9824 MB / 0.5112 GB, free: 8.297 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4421/1.143, allocations: 35.77 MB / 0.5461 GB, free: 105.7 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005214/1.143, allocations: 60.64 kB / 0.5462 GB, free: 105.7 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01645/1.16, allocations: 7.463 MB / 0.5535 GB, free: 100.5 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009818/1.161, allocations: 0.5449 MB / 0.554 GB, free: 100.3 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008835/1.162, allocations: 429.1 kB / 0.5544 GB, free: 100.1 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.175e-05/1.162, allocations: 301.9 kB / 0.5547 GB, free: 99.82 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003273/1.165, allocations: 1.965 MB / 0.5566 GB, free: 98.48 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003937/1.169, allocations: 2.86 MB / 0.5594 GB, free: 95.34 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005966/1.175, allocations: 4.209 MB / 0.5635 GB, free: 90.96 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-05/1.175, allocations: 4 kB / 0.5635 GB, free: 90.95 MB / 430.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01484/1.19, allocations: 6.03 MB / 0.5694 GB, free: 85.23 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.119e-05/1.19, allocations: 12 kB / 0.5694 GB, free: 85.22 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.404e-05/1.19, allocations: 12 kB / 0.5695 GB, free: 85.21 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009673/1.191, allocations: 373.2 kB / 0.5698 GB, free: 84.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002476/1.193, allocations: 0.6941 MB / 0.5705 GB, free: 84.15 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004481/1.198, allocations: 4.616 MB / 0.575 GB, free: 79.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008604/1.207, allocations: 0.6546 MB / 0.5756 GB, free: 78.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005068/1.207, allocations: 80 kB / 0.5757 GB, free: 78.67 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 14 (cccvCharger.CV,energy.local_reset,stack.cell[3,2].limIntegrator.local_reset,stack.cell[3,2].cell.limIntegrator.local_reset,stack.cell[3,1].limIntegrator.local_reset,stack.cell[3,1].cell.limIntegrator.local_reset,stack.cell[2,2].limIntegrator.local_reset,stack.cell[2,2].cell.limIntegrator.local_reset,stack.cell[2,1].limIntegrator.local_reset,stack.cell[2,1].cell.limIntegrator.local_reset,stack.cell[1,2].limIntegrator.local_reset,stack.cell[1,2].cell.limIntegrator.local_reset,stack.cell[1,1].limIntegrator.local_reset,stack.cell[1,1].cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (222): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,24)} Notification: Performance of prepare postOptimizeDAE: time 0.01115/1.218, allocations: 8.123 MB / 0.5836 GB, free: 70.54 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005368/1.224, allocations: 1.396 MB / 0.585 GB, free: 69.12 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01327/1.237, allocations: 6.021 MB / 0.5909 GB, free: 63.08 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-05/1.237, allocations: 19.98 kB / 0.5909 GB, free: 63.06 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/1.237, allocations: 0 / 0.5909 GB, free: 63.06 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.602e-05/1.237, allocations: 3.984 kB / 0.5909 GB, free: 63.05 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04276/1.28, allocations: 18.54 MB / 0.609 GB, free: 44.47 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/1.28, allocations: 1.188 kB / 0.609 GB, free: 44.47 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001828/1.282, allocations: 0.5655 MB / 0.6096 GB, free: 43.91 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007538/1.282, allocations: 288.7 kB / 0.6098 GB, free: 43.62 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001952/1.283, allocations: 43.98 kB / 0.6099 GB, free: 43.58 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003654/1.286, allocations: 4.033 MB / 0.6138 GB, free: 39.42 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/1.286, allocations: 0 / 0.6138 GB, free: 39.42 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01486/1.301, allocations: 7.631 MB / 0.6213 GB, free: 31.75 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01355/1.315, allocations: 4.194 MB / 0.6254 GB, free: 27.52 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005575/1.32, allocations: 43.98 kB / 0.6254 GB, free: 27.47 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008659/1.329, allocations: 0.6667 MB / 0.6261 GB, free: 26.8 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00115/1.33, allocations: 432.7 kB / 0.6265 GB, free: 26.38 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002195/1.331, allocations: 40.66 kB / 0.6265 GB, free: 26.34 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.05115/1.382, allocations: 25.59 MB / 0.6515 GB, free: 0.8242 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.71e-07/1.382, allocations: 0 / 0.6515 GB, free: 0.8242 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.01186/1.394, allocations: 1.845 MB / 0.6533 GB, free: 14.97 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 13 (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,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (136): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,18)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001519/1.395, allocations: 426.8 kB / 0.6537 GB, free: 14.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009209/1.404, allocations: 4.481 MB / 0.6581 GB, free: 10.24 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/1.404, allocations: 5.906 kB / 0.6581 GB, free: 10.24 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004216/1.409, allocations: 2.272 MB / 0.6603 GB, free: 7.949 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02319/1.432, allocations: 2.124 MB / 0.6624 GB, free: 5.852 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0802/1.512, allocations: 37.58 MB / 0.6991 GB, free: 244 kB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2574/1.77, allocations: 10.16 MB / 0.709 GB, free: 147.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.02223/1.792, allocations: 8.147 MB / 0.717 GB, free: 146.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006494/1.798, allocations: 0.6668 MB / 0.7176 GB, free: 146.7 MB / 478.1 MB Notification: Performance of SimCode: time 1.593e-06/1.798, allocations: 3.906 kB / 0.7176 GB, free: 146.7 MB / 478.1 MB Notification: Performance of Templates: time 0.2335/2.032, allocations: 156.8 MB / 0.8708 GB, free: 5.148 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1)