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.001271/0.001271, allocations: 121 kB / 18.41 MB, free: 4.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001399/0.001399, allocations: 212.5 kB / 19.36 MB, free: 3.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 60.94 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09683/0.09802, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01123/0.1093, allocations: 10.09 MB / 369 MB, free: 3.195 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1748/0.2842, allocations: 3.629 MB / 372.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009223/0.2851, allocations: 26.41 kB / 372.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002708/0.2879, allocations: 1.168 MB / 373.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001603/0.2895, allocations: 0.6812 MB / 374.5 MB, free: 13.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001199/0.2907, allocations: 493.8 kB / 375 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008618/0.2994, allocations: 7.332 MB / 382.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004774/0.3042, allocations: 4.477 MB / 386.8 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005056/0.3092, allocations: 2.847 MB / 389.6 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005259/0.3145, allocations: 2.927 MB / 392.6 MB, free: 6.914 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002116/0.3167, allocations: 0.6818 MB / 393.2 MB, free: 6.914 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002573/0.3193, allocations: 0.7238 MB / 394 MB, free: 6.902 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003439/0.3227, allocations: 5.82 MB / 399.8 MB, free: 1.469 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009742/0.3325, allocations: 7.187 MB / 407 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0205/0.353, allocations: 24.91 MB / 431.9 MB, free: 1.699 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.353, allocations: 0 / 431.9 MB, free: 1.699 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.353, allocations: 0 / 431.9 MB, free: 1.699 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.00053/0.3536, allocations: 0 / 431.9 MB, free: 1.699 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.04564/0.3992, allocations: 18.69 MB / 450.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.3993, allocations: 8.031 kB / 450.6 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004741/0.404, allocations: 1.551 MB / 452.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04064/0.4447, allocations: 17.79 MB / 469.9 MB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004938/0.4452, allocations: 331.4 kB / 470.2 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001276/0.4465, allocations: 324 kB / 470.6 MB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01335/0.4599, allocations: 6.498 MB / 477.1 MB, free: 4.414 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.463e-05/0.46, allocations: 3.938 kB / 477.1 MB, free: 4.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004595/0.4605, allocations: 148 kB / 477.2 MB, free: 4.266 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.802e-05/0.4606, allocations: 80 kB / 477.3 MB, free: 4.188 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01042/0.471, allocations: 5.124 MB / 482.4 MB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06545/0.5365, allocations: 33.42 MB / 0.5037 GB, free: 13.41 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008159/0.5447, allocations: 4.313 MB / 0.5079 GB, free: 9.168 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004508/0.5493, allocations: 2.577 MB / 0.5105 GB, free: 6.59 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001167/0.5494, allocations: 20.36 kB / 0.5105 GB, free: 6.574 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.858e-05/0.5495, allocations: 63.86 kB / 0.5105 GB, free: 6.5 MB / 430.1 MB Notification: Performance of pre-optimization done (n=156): time 3.587e-06/0.5495, allocations: 0 / 0.5105 GB, free: 6.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=156): time 0.01848/0.568, allocations: 7.526 MB / 0.5179 GB, free: 14.93 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004541/0.5685, allocations: 0.9863 MB / 0.5189 GB, free: 13.71 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4364/1.005, allocations: 35.88 MB / 0.5539 GB, free: 113.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006645/1.006, allocations: 66.58 kB / 0.554 GB, free: 113.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01387/1.02, allocations: 7.499 MB / 0.5613 GB, free: 108 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008237/1.02, allocations: 0.548 MB / 0.5618 GB, free: 107.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008129/1.021, allocations: 423.1 kB / 0.5622 GB, free: 107.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.097e-05/1.021, allocations: 304.7 kB / 0.5625 GB, free: 107.4 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002897/1.024, allocations: 1.968 MB / 0.5644 GB, free: 106.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003329/1.028, allocations: 2.852 MB / 0.5672 GB, free: 105.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005345/1.033, allocations: 4.212 MB / 0.5713 GB, free: 103.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.518e-06/1.033, allocations: 3.875 kB / 0.5713 GB, free: 103.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01332/1.046, allocations: 6.029 MB / 0.5772 GB, free: 100.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.163e-05/1.046, allocations: 14.66 kB / 0.5772 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.358e-05/1.046, allocations: 16.28 kB / 0.5773 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009065/1.047, allocations: 370.3 kB / 0.5776 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002012/1.049, allocations: 0.698 MB / 0.5783 GB, free: 99.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004191/1.053, allocations: 4.606 MB / 0.5828 GB, free: 95.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007204/1.061, allocations: 0.6567 MB / 0.5834 GB, free: 94.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003177/1.061, allocations: 76 kB / 0.5835 GB, free: 94.39 MB / 446.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.01015/1.071, allocations: 8.157 MB / 0.5915 GB, free: 86.22 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004599/1.076, allocations: 1.4 MB / 0.5928 GB, free: 84.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01318/1.089, allocations: 6.028 MB / 0.5987 GB, free: 78.75 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.221e-05/1.089, allocations: 16 kB / 0.5987 GB, free: 78.74 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/1.089, allocations: 0 / 0.5987 GB, free: 78.74 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.468e-05/1.089, allocations: 11.8 kB / 0.5987 GB, free: 78.73 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04153/1.131, allocations: 18.58 MB / 0.6169 GB, free: 60.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/1.131, allocations: 5 kB / 0.6169 GB, free: 60.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001842/1.132, allocations: 0.5616 MB / 0.6174 GB, free: 59.54 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007583/1.133, allocations: 291.7 kB / 0.6177 GB, free: 59.25 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001731/1.133, allocations: 43.98 kB / 0.6178 GB, free: 59.21 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004093/1.138, allocations: 4.03 MB / 0.6217 GB, free: 55.05 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/1.138, allocations: 1.562 kB / 0.6217 GB, free: 55.05 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01506/1.153, allocations: 7.637 MB / 0.6292 GB, free: 47.38 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01297/1.166, allocations: 4.189 MB / 0.6332 GB, free: 43.15 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005433/1.171, allocations: 47.98 kB / 0.6333 GB, free: 43.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007524/1.179, allocations: 0.6589 MB / 0.6339 GB, free: 42.44 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001038/1.18, allocations: 436.7 kB / 0.6344 GB, free: 42.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003174/1.18, allocations: 40 kB / 0.6344 GB, free: 41.98 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.05641/1.236, allocations: 25.68 MB / 0.6595 GB, free: 16.37 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.01e-07/1.236, allocations: 3.609 kB / 0.6595 GB, free: 16.37 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01266/1.249, allocations: 1.833 MB / 0.6613 GB, free: 14.54 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.001438/1.251, allocations: 432.5 kB / 0.6617 GB, free: 14.26 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00744/1.258, allocations: 4.478 MB / 0.666 GB, free: 9.77 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.217e-05/1.258, allocations: 5.969 kB / 0.6661 GB, free: 9.766 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003324/1.261, allocations: 2.272 MB / 0.6683 GB, free: 7.477 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02148/1.283, allocations: 2.102 MB / 0.6703 GB, free: 5.398 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06996/1.353, allocations: 37.33 MB / 0.7068 GB, free: 40 kB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01854/1.372, allocations: 10.19 MB / 0.7167 GB, free: 5.812 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.218/1.59, allocations: 7.684 MB / 0.7242 GB, free: 147.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006877/1.596, allocations: 0.668 MB / 0.7249 GB, free: 147.8 MB / 494.1 MB Notification: Performance of SimCode: time 9.21e-07/1.596, allocations: 0 / 0.7249 GB, free: 147.8 MB / 494.1 MB Notification: Performance of Templates: time 0.228/1.824, allocations: 156.7 MB / 0.878 GB, free: 27.81 MB / 494.1 MB 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 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1)