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.001584/0.001584, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001821/0.001821, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.358/1.358, allocations: 227.4 MB / 247.4 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001284, allocations: 60.12 kB / 307.6 MB, free: 0.6328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08909/0.09039, allocations: 50.53 MB / 358.1 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01121/0.1016, allocations: 10.09 MB / 368.2 MB, free: 3.953 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005312/0.107, allocations: 3.629 MB / 371.9 MB, free: 320 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008538/0.1079, allocations: 23.88 kB / 371.9 MB, free: 296 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1657/0.2736, allocations: 1.169 MB / 373.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001901/0.2755, allocations: 0.6798 MB / 373.7 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001195/0.2768, allocations: 486 kB / 374.2 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007236/0.284, allocations: 7.297 MB / 381.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004863/0.2889, allocations: 4.487 MB / 386 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005239/0.2942, allocations: 2.839 MB / 388.8 MB, free: 8.266 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006542/0.3008, allocations: 2.932 MB / 391.8 MB, free: 6.902 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002852/0.3037, allocations: 0.6802 MB / 392.5 MB, free: 6.902 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003722/0.3074, allocations: 0.7269 MB / 393.2 MB, free: 6.891 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006007/0.3134, allocations: 5.821 MB / 399 MB, free: 2.043 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01543/0.3289, allocations: 7.187 MB / 406.2 MB, free: 10.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.033/0.362, allocations: 24.69 MB / 430.9 MB, free: 2.488 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.362, allocations: 0 / 430.9 MB, free: 2.488 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3621, allocations: 0 / 430.9 MB, free: 2.488 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000762/0.3628, allocations: 0 / 430.9 MB, free: 2.488 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.05613/0.419, allocations: 18.69 MB / 449.6 MB, free: 15.67 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.419, allocations: 12.03 kB / 449.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006416/0.4255, allocations: 1.555 MB / 451.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04208/0.4676, allocations: 17.69 MB / 468.8 MB, free: 12.67 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001742/0.4694, allocations: 0.7511 MB / 469.6 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001244/0.4706, allocations: 324 kB / 469.9 MB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01472/0.4854, allocations: 6.484 MB / 476.4 MB, free: 4.887 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001004/0.4855, allocations: 7.922 kB / 476.4 MB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000821/0.4863, allocations: 144 kB / 476.5 MB, free: 4.738 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-05/0.4864, allocations: 84 kB / 476.6 MB, free: 4.656 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01011/0.4965, allocations: 5.116 MB / 481.7 MB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06804/0.5646, allocations: 33.59 MB / 0.5032 GB, free: 13.72 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008493/0.5731, allocations: 4.314 MB / 0.5074 GB, free: 9.48 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004657/0.5778, allocations: 2.566 MB / 0.5099 GB, free: 6.914 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001376/0.578, allocations: 25.3 kB / 0.51 GB, free: 6.891 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.806e-05/0.5781, allocations: 59.88 kB / 0.51 GB, free: 6.82 MB / 430.1 MB Notification: Performance of pre-optimization done (n=156): time 4.949e-06/0.5781, allocations: 4 kB / 0.51 GB, free: 6.816 MB / 430.1 MB Notification: Performance of matching and sorting (n=156): time 0.01925/0.5973, allocations: 7.515 MB / 0.5174 GB, free: 15.25 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000465/0.5978, allocations: 0.9863 MB / 0.5183 GB, free: 14.04 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4073/1.005, allocations: 35.87 MB / 0.5534 GB, free: 113.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005133/1.006, allocations: 67.73 kB / 0.5534 GB, free: 113.1 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01216/1.018, allocations: 7.5 MB / 0.5608 GB, free: 107.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006947/1.019, allocations: 0.5452 MB / 0.5613 GB, free: 107.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006728/1.019, allocations: 427.2 kB / 0.5617 GB, free: 107.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.508e-05/1.019, allocations: 306 kB / 0.562 GB, free: 107.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003015/1.022, allocations: 1.96 MB / 0.5639 GB, free: 106.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003484/1.026, allocations: 2.853 MB / 0.5667 GB, free: 105.5 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005868/1.032, allocations: 4.198 MB / 0.5708 GB, free: 103.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.099e-05/1.032, allocations: 3.906 kB / 0.5708 GB, free: 103.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01421/1.046, allocations: 6.02 MB / 0.5767 GB, free: 100.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.427e-05/1.046, allocations: 17.66 kB / 0.5767 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.538e-05/1.046, allocations: 13.25 kB / 0.5767 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001005/1.047, allocations: 369.8 kB / 0.577 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002265/1.049, allocations: 0.6976 MB / 0.5777 GB, free: 100.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004479/1.054, allocations: 4.61 MB / 0.5822 GB, free: 95.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00713/1.061, allocations: 0.6568 MB / 0.5829 GB, free: 94.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004009/1.061, allocations: 76 kB / 0.5829 GB, free: 94.84 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.01092/1.072, allocations: 8.146 MB / 0.5909 GB, free: 86.68 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004922/1.077, allocations: 1.405 MB / 0.5923 GB, free: 85.26 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01422/1.092, allocations: 6.026 MB / 0.5982 GB, free: 79.21 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/1.092, allocations: 19.89 kB / 0.5982 GB, free: 79.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/1.092, allocations: 0 / 0.5982 GB, free: 79.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.771e-05/1.092, allocations: 11.97 kB / 0.5982 GB, free: 79.19 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04401/1.136, allocations: 18.57 MB / 0.6163 GB, free: 60.56 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.796e-06/1.136, allocations: 4 kB / 0.6163 GB, free: 60.56 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001865/1.138, allocations: 0.5616 MB / 0.6169 GB, free: 60 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008072/1.138, allocations: 292.2 kB / 0.6172 GB, free: 59.71 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002024/1.139, allocations: 43.98 kB / 0.6172 GB, free: 59.67 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003777/1.142, allocations: 4.032 MB / 0.6211 GB, free: 55.51 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/1.142, allocations: 0.875 kB / 0.6211 GB, free: 55.51 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01481/1.157, allocations: 7.617 MB / 0.6286 GB, free: 47.86 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0141/1.171, allocations: 4.2 MB / 0.6327 GB, free: 43.62 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006499/1.178, allocations: 43.98 kB / 0.6327 GB, free: 43.58 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009606/1.188, allocations: 0.6551 MB / 0.6334 GB, free: 42.92 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009989/1.189, allocations: 400.6 kB / 0.6337 GB, free: 42.53 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001512/1.189, allocations: 47.94 kB / 0.6338 GB, free: 42.48 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.05955/1.248, allocations: 25.67 MB / 0.6589 GB, free: 16.88 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.42e-07/1.248, allocations: 4 kB / 0.6589 GB, free: 16.88 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.009531/1.258, allocations: 1.833 MB / 0.6607 GB, free: 15.04 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.001204/1.259, allocations: 416.8 kB / 0.6611 GB, free: 14.78 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01075/1.27, allocations: 6.962 MB / 0.6678 GB, free: 7.816 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-05/1.27, allocations: 9.219 kB / 0.6679 GB, free: 7.809 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003766/1.274, allocations: 2.261 MB / 0.6701 GB, free: 5.531 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02201/1.296, allocations: 2.106 MB / 0.6721 GB, free: 3.445 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07935/1.375, allocations: 38.6 MB / 0.7098 GB, free: 12.82 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02489/1.4, allocations: 10.17 MB / 0.7197 GB, free: 2.617 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006506/1.407, allocations: 0.6791 MB / 0.7204 GB, free: 1.941 MB / 494.1 MB Notification: Performance of SimCode: time 8.11e-07/1.407, allocations: 3.938 kB / 0.7204 GB, free: 1.938 MB / 494.1 MB Notification: Performance of Templates: time 0.7743/2.181, allocations: 305.8 MB / 1.019 GB, free: 61.16 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 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1)