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.001509/0.001509, allocations: 114.8 kB / 18.46 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001758/0.001758, allocations: 208 kB / 19.41 MB, free: 3.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 63.88 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2388/0.24, allocations: 50.55 MB / 409.9 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01092/0.251, allocations: 10.09 MB / 420 MB, free: 7.414 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005462/0.2565, allocations: 3.618 MB / 423.6 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000825/0.2573, allocations: 27.94 kB / 423.7 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002712/0.2601, allocations: 1.186 MB / 424.9 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001645/0.2617, allocations: 0.688 MB / 425.6 MB, free: 1.875 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001263/0.263, allocations: 482.9 kB / 426 MB, free: 1.406 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00845/0.2715, allocations: 7.333 MB / 433.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005664/0.2772, allocations: 4.478 MB / 437.8 MB, free: 5.496 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003617/0.2808, allocations: 2.859 MB / 440.7 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004205/0.285, allocations: 2.927 MB / 443.6 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001685/0.2867, allocations: 0.6836 MB / 444.3 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00215/0.2889, allocations: 0.7226 MB / 445 MB, free: 14.29 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004821/0.2937, allocations: 5.826 MB / 450.9 MB, free: 8.445 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01002/0.3038, allocations: 7.187 MB / 458 MB, free: 1.219 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02316/0.3269, allocations: 25.01 MB / 483 MB, free: 8.125 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/0.327, allocations: 0 / 483 MB, free: 8.125 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.327, allocations: 0 / 483 MB, free: 8.125 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006461/0.3276, allocations: 0 / 483 MB, free: 8.125 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.04407/0.3717, allocations: 19.23 MB / 0.4905 GB, free: 4.73 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.452e-05/0.3718, allocations: 8.031 kB / 0.4905 GB, free: 4.723 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005197/0.377, allocations: 1.639 MB / 0.4921 GB, free: 3.074 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04157/0.4186, allocations: 17.92 MB / 0.5096 GB, free: 1.082 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004996/0.4191, allocations: 328.2 kB / 0.5099 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001132/0.4202, allocations: 335.9 kB / 0.5102 GB, free: 436 kB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01329/0.4335, allocations: 6.491 MB / 0.5166 GB, free: 9.703 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.538e-05/0.4336, allocations: 0 / 0.5166 GB, free: 9.703 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007066/0.4344, allocations: 152 kB / 0.5167 GB, free: 9.555 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.433e-05/0.4344, allocations: 80 kB / 0.5168 GB, free: 9.477 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009167/0.4436, allocations: 5.123 MB / 0.5218 GB, free: 4.344 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4553/0.8989, allocations: 33.46 MB / 0.5545 GB, free: 99.61 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00644/0.9054, allocations: 4.309 MB / 0.5587 GB, free: 97.67 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003591/0.909, allocations: 2.585 MB / 0.5612 GB, free: 96.54 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001137/0.9091, allocations: 22.8 kB / 0.5612 GB, free: 96.54 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.463e-05/0.9092, allocations: 72.44 kB / 0.5613 GB, free: 96.48 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 4.218e-06/0.9092, allocations: 0 / 0.5613 GB, free: 96.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.01553/0.9248, allocations: 7.595 MB / 0.5687 GB, free: 90.25 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002146/0.925, allocations: 0.9863 MB / 0.5697 GB, free: 89.03 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0499/0.9749, allocations: 35.88 MB / 0.6047 GB, free: 53.25 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004971/0.9754, allocations: 65.7 kB / 0.6048 GB, free: 53.18 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01105/0.9865, allocations: 7.53 MB / 0.6121 GB, free: 45.96 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006528/0.9872, allocations: 0.5668 MB / 0.6127 GB, free: 45.46 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009638/0.9881, allocations: 435.2 kB / 0.6131 GB, free: 45.03 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.855e-05/0.9882, allocations: 301.1 kB / 0.6134 GB, free: 44.73 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003038/0.9912, allocations: 1.971 MB / 0.6153 GB, free: 42.76 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003368/0.9946, allocations: 2.852 MB / 0.6181 GB, free: 39.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005717/1, allocations: 4.207 MB / 0.6222 GB, free: 35.19 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.186e-05/1, allocations: 4 kB / 0.6222 GB, free: 35.18 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01242/1.013, allocations: 6.115 MB / 0.6282 GB, free: 29.05 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.601e-05/1.013, allocations: 12 kB / 0.6282 GB, free: 29.04 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.226e-05/1.013, allocations: 16 kB / 0.6282 GB, free: 29.02 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009105/1.014, allocations: 367.5 kB / 0.6286 GB, free: 28.66 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002052/1.016, allocations: 0.6991 MB / 0.6293 GB, free: 27.96 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004386/1.02, allocations: 4.607 MB / 0.6338 GB, free: 23.24 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006309/1.027, allocations: 0.6618 MB / 0.6344 GB, free: 22.64 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001928/1.027, allocations: 84 kB / 0.6345 GB, free: 22.55 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.009209/1.036, allocations: 8.136 MB / 0.6424 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004328/1.04, allocations: 1.482 MB / 0.6439 GB, free: 12.93 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01202/1.052, allocations: 6.034 MB / 0.6498 GB, free: 6.879 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.548e-05/1.052, allocations: 9.281 kB / 0.6498 GB, free: 6.871 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/1.052, allocations: 0 / 0.6498 GB, free: 6.871 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00939/1.062, allocations: 4.27 MB / 0.6539 GB, free: 2.598 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004363/1.066, allocations: 47.98 kB / 0.654 GB, free: 2.551 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006254/1.072, allocations: 0.663 MB / 0.6546 GB, free: 1.887 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007707/1.073, allocations: 420.7 kB / 0.655 GB, free: 1.477 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01441/1.088, allocations: 6.983 MB / 0.6619 GB, free: 10.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01559/1.103, allocations: 7.489 MB / 0.6692 GB, free: 2.984 MB / 478.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00341/1.107, allocations: 2.052 MB / 0.6712 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.05125/1.158, allocations: 25.67 MB / 0.6962 GB, free: 7.328 MB / 0.4982 GB Notification: Performance of Backend: time 7.01e-07/1.158, allocations: 0 / 0.6962 GB, free: 7.328 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.01458/1.173, allocations: 3.914 MB / 0.7001 GB, free: 3.598 MB / 0.4982 GB Notification: Performance of SimCode: time 0.06053/1.233, allocations: 38.72 MB / 0.7379 GB, free: 12.83 MB / 0.545 GB Notification: Performance of Templates: time 0.4271/1.66, allocations: 167 MB / 0.9009 GB, free: 53.37 MB / 0.545 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)