Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001088/0.001088, allocations: 111.8 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001124/0.001124, allocations: 210.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 63.89 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.2395, allocations: 50.54 MB / 409.9 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01032/0.2499, allocations: 10.1 MB / 420 MB, free: 7.453 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005134/0.2551, allocations: 3.619 MB / 423.6 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009947/0.2561, allocations: 27.88 kB / 423.7 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002901/0.259, allocations: 1.186 MB / 424.8 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001773/0.2609, allocations: 0.6723 MB / 425.5 MB, free: 1.93 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001299/0.2622, allocations: 490.8 kB / 426 MB, free: 1.453 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007615/0.2699, allocations: 7.341 MB / 433.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004796/0.2747, allocations: 4.47 MB / 437.8 MB, free: 5.543 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003867/0.2786, allocations: 2.863 MB / 440.7 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003994/0.2827, allocations: 2.931 MB / 443.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001557/0.2842, allocations: 0.6797 MB / 444.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001896/0.2862, allocations: 0.7187 MB / 445 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005124/0.2913, allocations: 5.822 MB / 450.8 MB, free: 8.496 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01124/0.3026, allocations: 7.191 MB / 458 MB, free: 1.266 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02515/0.3278, allocations: 24.92 MB / 482.9 MB, free: 8.273 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.3279, allocations: 0 / 482.9 MB, free: 8.273 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3279, allocations: 0 / 482.9 MB, free: 8.273 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007597/0.3287, allocations: 4 kB / 482.9 MB, free: 8.27 MB / 398.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.04811/0.3768, allocations: 18.69 MB / 0.4899 GB, free: 5.422 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.3769, allocations: 11.97 kB / 0.4899 GB, free: 5.41 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005503/0.3824, allocations: 1.563 MB / 0.4914 GB, free: 3.828 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.041/0.4234, allocations: 17.77 MB / 0.5088 GB, free: 1.973 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004264/0.4239, allocations: 336.2 kB / 0.5091 GB, free: 1.637 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001245/0.4252, allocations: 324 kB / 0.5094 GB, free: 1.32 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01438/0.4395, allocations: 6.495 MB / 0.5157 GB, free: 10.6 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.7e-05/0.4397, allocations: 3.938 kB / 0.5157 GB, free: 10.59 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006429/0.4403, allocations: 144 kB / 0.5159 GB, free: 10.45 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.552e-05/0.4404, allocations: 83.94 kB / 0.516 GB, free: 10.37 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01088/0.4513, allocations: 5.126 MB / 0.521 GB, free: 5.234 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4801/0.9315, allocations: 33.41 MB / 0.5536 GB, free: 100.3 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007508/0.939, allocations: 4.314 MB / 0.5578 GB, free: 98.37 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00471/0.9438, allocations: 2.583 MB / 0.5603 GB, free: 97.24 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001179/0.9439, allocations: 22.44 kB / 0.5603 GB, free: 97.24 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.549e-05/0.944, allocations: 62.22 kB / 0.5604 GB, free: 97.19 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 3.326e-06/0.944, allocations: 0 / 0.5604 GB, free: 97.19 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.01855/0.9625, allocations: 7.53 MB / 0.5678 GB, free: 91.63 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002032/0.9628, allocations: 0.9824 MB / 0.5687 GB, free: 90.41 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06656/1.029, allocations: 35.88 MB / 0.6038 GB, free: 54.63 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000446/1.03, allocations: 65.7 kB / 0.6038 GB, free: 54.56 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0131/1.043, allocations: 7.503 MB / 0.6112 GB, free: 47.26 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006861/1.044, allocations: 0.5387 MB / 0.6117 GB, free: 46.73 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009246/1.045, allocations: 431 kB / 0.6121 GB, free: 46.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.703e-05/1.045, allocations: 305.1 kB / 0.6124 GB, free: 46 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003821/1.049, allocations: 1.967 MB / 0.6143 GB, free: 44.03 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004077/1.053, allocations: 2.859 MB / 0.6171 GB, free: 40.86 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007136/1.06, allocations: 4.205 MB / 0.6212 GB, free: 36.46 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.81e-05/1.06, allocations: 4 kB / 0.6212 GB, free: 36.46 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.0153/1.075, allocations: 6.033 MB / 0.6271 GB, free: 30.39 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.196e-05/1.075, allocations: 12.16 kB / 0.6271 GB, free: 30.38 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.706e-05/1.075, allocations: 20 kB / 0.6271 GB, free: 30.36 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001004/1.076, allocations: 371.1 kB / 0.6275 GB, free: 30 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002293/1.079, allocations: 0.6941 MB / 0.6282 GB, free: 29.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004447/1.083, allocations: 4.598 MB / 0.6326 GB, free: 24.57 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007227/1.09, allocations: 0.6529 MB / 0.6333 GB, free: 23.91 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004849/1.091, allocations: 79.98 kB / 0.6334 GB, free: 23.83 MB / 462.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.009591/1.1, allocations: 8.146 MB / 0.6413 GB, free: 15.68 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004785/1.105, allocations: 1.4 MB / 0.6427 GB, free: 14.26 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0122/1.117, allocations: 6.043 MB / 0.6486 GB, free: 8.207 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/1.118, allocations: 16 kB / 0.6486 GB, free: 8.191 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/1.118, allocations: 0.875 kB / 0.6486 GB, free: 8.191 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-05/1.118, allocations: 7.969 kB / 0.6486 GB, free: 8.184 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04788/1.165, allocations: 18.58 MB / 0.6667 GB, free: 5.559 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.548e-06/1.165, allocations: 0 / 0.6667 GB, free: 5.559 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002039/1.168, allocations: 0.5655 MB / 0.6673 GB, free: 4.992 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008889/1.168, allocations: 295.7 kB / 0.6676 GB, free: 4.703 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001659/1.169, allocations: 43.92 kB / 0.6676 GB, free: 4.664 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004908/1.174, allocations: 4.029 MB / 0.6716 GB, free: 0.5039 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/1.174, allocations: 0 / 0.6716 GB, free: 0.5039 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01675/1.19, allocations: 7.636 MB / 0.679 GB, free: 8.824 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01215/1.203, allocations: 4.193 MB / 0.6831 GB, free: 4.594 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00467/1.207, allocations: 44 kB / 0.6832 GB, free: 4.551 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0073/1.215, allocations: 0.6629 MB / 0.6838 GB, free: 3.887 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001152/1.216, allocations: 432.6 kB / 0.6842 GB, free: 3.461 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001751/1.216, allocations: 47.98 kB / 0.6843 GB, free: 3.414 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.05988/1.276, allocations: 25.68 MB / 0.7093 GB, free: 9.812 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.013e-06/1.276, allocations: 0 / 0.7093 GB, free: 9.812 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01005/1.286, allocations: 1.836 MB / 0.7111 GB, free: 7.977 MB / 0.5138 GB 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.001316/1.287, allocations: 417.8 kB / 0.7115 GB, free: 7.695 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009024/1.296, allocations: 4.489 MB / 0.7159 GB, free: 3.199 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.221e-05/1.296, allocations: 5.219 kB / 0.7159 GB, free: 3.195 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004444/1.301, allocations: 2.268 MB / 0.7181 GB, free: 0.918 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01839/1.319, allocations: 2.106 MB / 0.7202 GB, free: 14.83 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2891/1.608, allocations: 38.2 MB / 0.7575 GB, free: 184.4 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01859/1.627, allocations: 10.16 MB / 0.7674 GB, free: 181.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006002/1.633, allocations: 0.6864 MB / 0.7681 GB, free: 181.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.052e-06/1.633, allocations: 0 / 0.7681 GB, free: 181.6 MB / 0.545 GB Notification: Performance of Templates: time 0.5623/2.195, allocations: 309.8 MB / 1.071 GB, free: 108.5 MB / 0.5607 GB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1)