Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.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_StackRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|energy.y|stack.cell.1, 1..cell.capacitor.1..v|stack.cell.1, 1..cell.capacitor.2..v|stack.cell.1, 1..cell.limIntegrator.y|stack.cell.1, 1..limIntegrator.y|stack.cell.1, 2..cell.capacitor.1..v|stack.cell.1, 2..cell.capacitor.2..v|stack.cell.1, 2..cell.limIntegrator.y|stack.cell.1, 2..limIntegrator.y|stack.cell.2, 1..cell.capacitor.1..v|stack.cell.2, 1..cell.capacitor.2..v|stack.cell.2, 1..cell.limIntegrator.y|stack.cell.2, 1..limIntegrator.y|stack.cell.2, 2..cell.capacitor.1..v|stack.cell.2, 2..cell.capacitor.2..v|stack.cell.2, 2..cell.limIntegrator.y|stack.cell.2, 2..limIntegrator.y|stack.cell.3, 1..cell.capacitor.1..v|stack.cell.3, 1..cell.capacitor.2..v|stack.cell.3, 1..cell.limIntegrator.y|stack.cell.3, 1..limIntegrator.y|stack.cell.3, 2..cell.capacitor.1..v|stack.cell.3, 2..cell.capacitor.2..v|stack.cell.3, 2..cell.limIntegrator.y|stack.cell.3, 2..limIntegrator.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") translateModel(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|energy.y|stack.cell.1, 1..cell.capacitor.1..v|stack.cell.1, 1..cell.capacitor.2..v|stack.cell.1, 1..cell.limIntegrator.y|stack.cell.1, 1..limIntegrator.y|stack.cell.1, 2..cell.capacitor.1..v|stack.cell.1, 2..cell.capacitor.2..v|stack.cell.1, 2..cell.limIntegrator.y|stack.cell.1, 2..limIntegrator.y|stack.cell.2, 1..cell.capacitor.1..v|stack.cell.2, 1..cell.capacitor.2..v|stack.cell.2, 1..cell.limIntegrator.y|stack.cell.2, 1..limIntegrator.y|stack.cell.2, 2..cell.capacitor.1..v|stack.cell.2, 2..cell.capacitor.2..v|stack.cell.2, 2..cell.limIntegrator.y|stack.cell.2, 2..limIntegrator.y|stack.cell.3, 1..cell.capacitor.1..v|stack.cell.3, 1..cell.capacitor.2..v|stack.cell.3, 1..cell.limIntegrator.y|stack.cell.3, 1..limIntegrator.y|stack.cell.3, 2..cell.capacitor.1..v|stack.cell.3, 2..cell.capacitor.2..v|stack.cell.3, 2..cell.limIntegrator.y|stack.cell.3, 2..limIntegrator.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001116/0.001116, allocations: 113.3 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001265/0.001265, allocations: 206.7 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 63.89 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2761, allocations: 50.55 MB / 409.9 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC): time 0.01524/0.2914, allocations: 11.27 MB / 421.2 MB, free: 6.277 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005951/0.2973, allocations: 3.927 MB / 425.1 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001156/0.2985, allocations: 31.88 kB / 425.2 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007428/0.306, allocations: 5.678 MB / 430.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001641/0.3077, allocations: 0.5161 MB / 431.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001279/0.309, allocations: 0.5181 MB / 431.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02278/0.3318, allocations: 21.27 MB / 453.1 MB, free: 6.289 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01053/0.3423, allocations: 9.459 MB / 462.6 MB, free: 12.74 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.05205/0.3944, allocations: 48.48 MB / 0.4991 GB, free: 12.2 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008405/0.4029, allocations: 3.908 MB / 0.5029 GB, free: 8.281 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004055/0.407, allocations: 0.9609 MB / 0.5039 GB, free: 7.32 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004681/0.4117, allocations: 1.023 MB / 0.5049 GB, free: 6.297 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006648/0.4184, allocations: 3.858 MB / 0.5086 GB, free: 2.43 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01206/0.4305, allocations: 5.177 MB / 0.5137 GB, free: 13.23 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02963/0.4602, allocations: 17.64 MB / 0.5309 GB, free: 11.54 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.645e-06/0.4602, allocations: 3.938 kB / 0.5309 GB, free: 11.54 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.4602, allocations: 0 / 0.5309 GB, free: 11.54 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005198/0.4607, allocations: 0 / 0.5309 GB, free: 11.54 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1013 * Number of variables: 1013 Notification: Performance of Generate backend data structure: time 0.4446/0.9054, allocations: 12.45 MB / 0.5431 GB, free: 120.7 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.283e-05/0.9055, allocations: 8.688 kB / 0.5431 GB, free: 120.7 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002904/0.9084, allocations: 1.059 MB / 0.5441 GB, free: 120.2 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01973/0.9281, allocations: 11.19 MB / 0.555 GB, free: 113.5 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006335/0.9288, allocations: 0.5467 MB / 0.5556 GB, free: 112.9 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001109/0.9299, allocations: 391.9 kB / 0.5559 GB, free: 112.5 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01273/0.9427, allocations: 8.551 MB / 0.5643 GB, free: 103.7 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.203e-05/0.9428, allocations: 3.938 kB / 0.5643 GB, free: 103.7 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005659/0.9433, allocations: 176 kB / 0.5645 GB, free: 103.5 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.195e-05/0.9434, allocations: 100 kB / 0.5646 GB, free: 103.4 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009929/0.9533, allocations: 7.138 MB / 0.5715 GB, free: 96.28 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04252/0.9959, allocations: 28.57 MB / 0.5994 GB, free: 67.44 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008503/1.004, allocations: 6.091 MB / 0.6054 GB, free: 61.49 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005719/1.01, allocations: 4.317 MB / 0.6096 GB, free: 57.18 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001282/1.01, allocations: 27.22 kB / 0.6096 GB, free: 57.15 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.608e-05/1.01, allocations: 80.98 kB / 0.6097 GB, free: 57.06 MB / 462.1 MB Notification: Performance of pre-optimization done (n=231): time 3.737e-06/1.01, allocations: 0 / 0.6097 GB, free: 57.06 MB / 462.1 MB Notification: Performance of matching and sorting (n=231): time 0.01814/1.029, allocations: 9.825 MB / 0.6193 GB, free: 47.19 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002368/1.029, allocations: 1.296 MB / 0.6206 GB, free: 45.59 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0242/1.053, allocations: 14.84 MB / 0.635 GB, free: 30.78 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006217/1.054, allocations: 81.7 kB / 0.6351 GB, free: 30.7 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004137/1.058, allocations: 4.444 MB / 0.6395 GB, free: 26.23 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009048/1.059, allocations: 0.8127 MB / 0.6403 GB, free: 25.41 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001621/1.06, allocations: 0.6072 MB / 0.6409 GB, free: 24.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.512e-05/1.06, allocations: 305.1 kB / 0.6411 GB, free: 24.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004141/1.065, allocations: 2.968 MB / 0.644 GB, free: 21.52 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004634/1.069, allocations: 4.027 MB / 0.648 GB, free: 17.13 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007883/1.077, allocations: 6.099 MB / 0.6539 GB, free: 10.79 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.95e-05/1.077, allocations: 4 kB / 0.6539 GB, free: 10.78 MB / 462.1 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.01291/1.09, allocations: 7.687 MB / 0.6614 GB, free: 3.031 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.884e-05/1.09, allocations: 14.66 kB / 0.6615 GB, free: 3.02 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.26e-05/1.09, allocations: 16.09 kB / 0.6615 GB, free: 3.004 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001155/1.091, allocations: 0.547 MB / 0.662 GB, free: 2.453 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00316/1.094, allocations: 1.01 MB / 0.663 GB, free: 1.441 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007596/1.102, allocations: 6.378 MB / 0.6692 GB, free: 10.92 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005646/1.108, allocations: 0.8399 MB / 0.67 GB, free: 10.08 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005439/1.108, allocations: 99.05 kB / 0.6701 GB, free: 9.984 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (308): * Single equations (assignments): 307 * 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,38)} Notification: Performance of prepare postOptimizeDAE: time 0.007994/1.116, allocations: 4.79 MB / 0.6748 GB, free: 5.18 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002851/1.119, allocations: 0.868 MB / 0.6757 GB, free: 4.301 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004041/1.123, allocations: 1.314 MB / 0.6769 GB, free: 2.98 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-05/1.123, allocations: 11.95 kB / 0.677 GB, free: 2.969 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/1.123, allocations: 0 / 0.677 GB, free: 2.969 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005532/1.129, allocations: 2.235 MB / 0.6791 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002307/1.131, allocations: 83.97 kB / 0.6792 GB, free: 0.6211 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005482/1.137, allocations: 0.8584 MB / 0.6801 GB, free: 15.76 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001116/1.138, allocations: 485.3 kB / 0.6805 GB, free: 15.29 MB / 494.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01968/1.157, allocations: 9.232 MB / 0.6895 GB, free: 6.039 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01596/1.173, allocations: 9.619 MB / 0.6989 GB, free: 12.38 MB / 0.4982 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004567/1.178, allocations: 2.963 MB / 0.7018 GB, free: 9.414 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.02061/1.199, allocations: 10.59 MB / 0.7122 GB, free: 14.86 MB / 0.5138 GB Notification: Performance of Backend: time 8.21e-07/1.199, allocations: 0 / 0.7122 GB, free: 14.86 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01412/1.213, allocations: 4.806 MB / 0.7169 GB, free: 10.28 MB / 0.5138 GB Notification: Performance of SimCode: time 0.04415/1.257, allocations: 23.55 MB / 0.7399 GB, free: 2.703 MB / 0.5294 GB Notification: Performance of Templates: time 0.3837/1.641, allocations: 123.2 MB / 0.8602 GB, free: 81.44 MB / 0.5294 GB make -j1 -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.makefile (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.sim & ./Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe 2>&1)