Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 107.1 kB / 17.74 MB, free: 5.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 188.2 kB / 18.67 MB, free: 4.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009554/0.0009555, allocations: 51.92 kB / 352 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.2375, allocations: 49.44 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01009/0.2477, allocations: 10.06 MB / 411.5 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004991/0.2527, allocations: 3.462 MB / 414.9 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007723/0.2535, allocations: 27.88 kB / 415 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002524/0.256, allocations: 1.179 MB / 416.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001407/0.2575, allocations: 0.6373 MB / 416.8 MB, free: 9.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00109/0.2586, allocations: 485.5 kB / 417.2 MB, free: 8.957 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007332/0.2659, allocations: 7.343 MB / 424.6 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004489/0.2704, allocations: 4.454 MB / 429 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003173/0.2736, allocations: 2.859 MB / 431.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003563/0.2772, allocations: 2.919 MB / 434.8 MB, free: 7.262 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001211/0.2784, allocations: 0.6797 MB / 435.5 MB, free: 6.582 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001424/0.2799, allocations: 0.7226 MB / 436.2 MB, free: 5.859 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003878/0.2838, allocations: 5.81 MB / 442 MB, free: 36 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008754/0.2925, allocations: 7.176 MB / 449.2 MB, free: 8.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02083/0.3134, allocations: 24.89 MB / 474.1 MB, free: 15.86 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.3134, allocations: 0 / 474.1 MB, free: 15.86 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3134, allocations: 4 kB / 474.1 MB, free: 15.86 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005729/0.314, allocations: 0 / 474.1 MB, free: 15.86 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.04378/0.3578, allocations: 18.65 MB / 492.8 MB, free: 13.05 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.3579, allocations: 8.031 kB / 492.8 MB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004685/0.3626, allocations: 1.547 MB / 494.3 MB, free: 11.47 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03544/0.398, allocations: 17.74 MB / 0.5 GB, free: 9.645 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003877/0.3984, allocations: 328.2 kB / 0.5004 GB, free: 9.316 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007056/0.3992, allocations: 323.9 kB / 0.5007 GB, free: 9 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0113/0.4105, allocations: 6.502 MB / 0.507 GB, free: 2.273 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.397e-05/0.4105, allocations: 4 kB / 0.507 GB, free: 2.27 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004022/0.411, allocations: 147.9 kB / 0.5072 GB, free: 2.125 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.545e-05/0.411, allocations: 80 kB / 0.5072 GB, free: 2.047 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00847/0.4195, allocations: 5.127 MB / 0.5122 GB, free: 12.91 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4112/0.8307, allocations: 33.4 MB / 0.5449 GB, free: 105.4 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006504/0.8373, allocations: 4.311 MB / 0.5491 GB, free: 104.6 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003542/0.8408, allocations: 2.588 MB / 0.5516 GB, free: 104 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.419e-05/0.8409, allocations: 16.62 kB / 0.5516 GB, free: 104 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.48e-05/0.841, allocations: 70.22 kB / 0.5517 GB, free: 103.9 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 3.186e-06/0.841, allocations: 0 / 0.5517 GB, free: 103.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.01493/0.8559, allocations: 7.524 MB / 0.559 GB, free: 101.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001758/0.8561, allocations: 0.9871 MB / 0.56 GB, free: 100 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05161/0.9077, allocations: 35.77 MB / 0.5949 GB, free: 68.55 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004221/0.9082, allocations: 61.7 kB / 0.595 GB, free: 68.49 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.008883/0.9171, allocations: 7.458 MB / 0.6023 GB, free: 61.24 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005869/0.9177, allocations: 0.5504 MB / 0.6028 GB, free: 60.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006438/0.9184, allocations: 423.2 kB / 0.6032 GB, free: 60.28 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.525e-05/0.9184, allocations: 305.1 kB / 0.6035 GB, free: 59.98 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002929/0.9213, allocations: 1.978 MB / 0.6054 GB, free: 58 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003216/0.9246, allocations: 2.852 MB / 0.6082 GB, free: 54.84 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005539/0.9301, allocations: 4.208 MB / 0.6123 GB, free: 50.42 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.756e-06/0.9301, allocations: 4 kB / 0.6123 GB, free: 50.42 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01294/0.9431, allocations: 6.033 MB / 0.6182 GB, free: 44.36 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.9431, allocations: 12 kB / 0.6182 GB, free: 44.34 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.744e-05/0.9432, allocations: 12 kB / 0.6182 GB, free: 44.33 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008257/0.944, allocations: 368.2 kB / 0.6186 GB, free: 43.97 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002076/0.9461, allocations: 0.6941 MB / 0.6193 GB, free: 43.28 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004191/0.9503, allocations: 4.607 MB / 0.6238 GB, free: 38.53 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006719/0.957, allocations: 0.6568 MB / 0.6244 GB, free: 37.87 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002976/0.9573, allocations: 80 kB / 0.6245 GB, free: 37.79 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.008949/0.9663, allocations: 8.129 MB / 0.6324 GB, free: 29.65 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004418/0.9707, allocations: 1.388 MB / 0.6338 GB, free: 28.24 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01131/0.982, allocations: 6.031 MB / 0.6397 GB, free: 22.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.467e-05/0.9821, allocations: 19.94 kB / 0.6397 GB, free: 22.18 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.9821, allocations: 0 / 0.6397 GB, free: 22.18 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.403e-05/0.9821, allocations: 7.969 kB / 0.6397 GB, free: 22.17 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03629/1.018, allocations: 18.53 MB / 0.6578 GB, free: 3.598 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.837e-06/1.018, allocations: 4 kB / 0.6578 GB, free: 3.594 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001815/1.02, allocations: 0.5577 MB / 0.6583 GB, free: 3.035 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006944/1.021, allocations: 302 kB / 0.6586 GB, free: 2.738 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001273/1.021, allocations: 39.98 kB / 0.6587 GB, free: 2.699 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003986/1.025, allocations: 4.026 MB / 0.6626 GB, free: 14.55 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/1.025, allocations: 7.938 kB / 0.6626 GB, free: 14.54 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01536/1.041, allocations: 7.625 MB / 0.6701 GB, free: 6.875 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009472/1.05, allocations: 4.193 MB / 0.6742 GB, free: 2.645 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004258/1.054, allocations: 51.98 kB / 0.6742 GB, free: 2.594 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006515/1.061, allocations: 0.6552 MB / 0.6748 GB, free: 1.938 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009726/1.062, allocations: 438.3 kB / 0.6753 GB, free: 1.508 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00015/1.062, allocations: 36 kB / 0.6753 GB, free: 1.473 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.05244/1.114, allocations: 25.59 MB / 0.7003 GB, free: 7.949 MB / 0.4982 GB Notification: Performance of sort global known variables: time 4.41e-07/1.114, allocations: 0 / 0.7003 GB, free: 7.949 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.009216/1.124, allocations: 1.844 MB / 0.7021 GB, free: 6.105 MB / 0.4982 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.001213/1.125, allocations: 430.3 kB / 0.7025 GB, free: 5.824 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.008382/1.133, allocations: 4.49 MB / 0.7069 GB, free: 1.328 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/1.133, allocations: 9.531 kB / 0.7069 GB, free: 1.32 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.004016/1.137, allocations: 2.264 MB / 0.7091 GB, free: 15.04 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01641/1.154, allocations: 2.111 MB / 0.7112 GB, free: 12.95 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2698/1.424, allocations: 38.45 MB / 0.7487 GB, free: 173.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01942/1.443, allocations: 10.14 MB / 0.7586 GB, free: 170.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005233/1.448, allocations: 0.6873 MB / 0.7593 GB, free: 170.5 MB / 0.5294 GB Notification: Performance of SimCode: time 1.202e-06/1.448, allocations: 0 / 0.7593 GB, free: 170.5 MB / 0.5294 GB Notification: Performance of Templates: time 0.5519/2, allocations: 306.9 MB / 1.059 GB, free: 88.99 MB / 0.545 GB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1)