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.001414/0.001414, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001514/0.001514, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.376/1.376, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009611/0.0009611, allocations: 41.83 kB / 301.3 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08827/0.08925, allocations: 49.45 MB / 350.7 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01178/0.1011, allocations: 10.05 MB / 360.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0053/0.1064, allocations: 3.454 MB / 364.2 MB, free: 6.848 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009692/0.1074, allocations: 27.88 kB / 364.3 MB, free: 6.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002751/0.1102, allocations: 1.183 MB / 365.4 MB, free: 5.633 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001674/0.1119, allocations: 0.6335 MB / 366.1 MB, free: 4.996 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001315/0.1133, allocations: 0.4924 MB / 366.6 MB, free: 4.508 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1694/0.2827, allocations: 7.298 MB / 373.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005853/0.2886, allocations: 4.46 MB / 378.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004265/0.2929, allocations: 2.837 MB / 381.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00503/0.298, allocations: 2.923 MB / 384.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002378/0.3004, allocations: 0.6765 MB / 384.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003226/0.3036, allocations: 0.721 MB / 385.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005215/0.3089, allocations: 5.817 MB / 391.3 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01004/0.3189, allocations: 7.178 MB / 398.5 MB, free: 4.246 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02139/0.3403, allocations: 24.66 MB / 423.1 MB, free: 12.49 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3404, allocations: 0 / 423.1 MB, free: 12.49 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3404, allocations: 0 / 423.1 MB, free: 12.49 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0005985/0.341, allocations: 0 / 423.1 MB, free: 12.49 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.04502/0.386, allocations: 18.65 MB / 441.8 MB, free: 9.715 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.3861, allocations: 8.031 kB / 441.8 MB, free: 9.707 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00609/0.3922, allocations: 1.555 MB / 443.3 MB, free: 8.133 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04017/0.4324, allocations: 17.65 MB / 461 MB, free: 6.832 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002043/0.4345, allocations: 0.749 MB / 461.7 MB, free: 6.078 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001243/0.4357, allocations: 323.9 kB / 462.1 MB, free: 5.762 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0152/0.451, allocations: 6.492 MB / 468.6 MB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001063/0.4511, allocations: 0 / 468.6 MB, free: 15.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009811/0.4521, allocations: 148 kB / 468.7 MB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.486e-05/0.4522, allocations: 83.98 kB / 468.8 MB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01048/0.4627, allocations: 5.116 MB / 473.9 MB, free: 9.738 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06822/0.5309, allocations: 33.58 MB / 0.4956 GB, free: 8.102 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008312/0.5393, allocations: 4.301 MB / 0.4998 GB, free: 3.883 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004661/0.544, allocations: 2.562 MB / 0.5023 GB, free: 1.328 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001519/0.5442, allocations: 21.3 kB / 0.5023 GB, free: 1.309 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.465e-05/0.5443, allocations: 67.16 kB / 0.5024 GB, free: 1.238 MB / 414.1 MB Notification: Performance of pre-optimization done (n=156): time 3.626e-06/0.5443, allocations: 4 kB / 0.5024 GB, free: 1.234 MB / 414.1 MB Notification: Performance of matching and sorting (n=156): time 0.01998/0.5643, allocations: 7.51 MB / 0.5097 GB, free: 9.684 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003952/0.5647, allocations: 0.9824 MB / 0.5107 GB, free: 8.469 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4011/0.9659, allocations: 35.76 MB / 0.5456 GB, free: 105.7 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004801/0.9664, allocations: 65.23 kB / 0.5457 GB, free: 105.7 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01348/0.9799, allocations: 7.465 MB / 0.5529 GB, free: 100.4 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008446/0.9808, allocations: 0.5418 MB / 0.5535 GB, free: 100.3 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008134/0.9816, allocations: 432.4 kB / 0.5539 GB, free: 100.1 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.128e-05/0.9816, allocations: 302.6 kB / 0.5542 GB, free: 99.84 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003264/0.9849, allocations: 1.966 MB / 0.5561 GB, free: 98.79 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003527/0.9885, allocations: 2.86 MB / 0.5589 GB, free: 95.64 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005789/0.9943, allocations: 4.188 MB / 0.563 GB, free: 91.27 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-05/0.9943, allocations: 4 kB / 0.563 GB, free: 91.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01379/1.008, allocations: 6.025 MB / 0.5689 GB, free: 85.55 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.273e-05/1.008, allocations: 8 kB / 0.5689 GB, free: 85.54 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.094e-05/1.008, allocations: 19.94 kB / 0.5689 GB, free: 85.52 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008911/1.009, allocations: 368.8 kB / 0.5692 GB, free: 85.16 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002242/1.011, allocations: 0.7015 MB / 0.5699 GB, free: 84.46 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004181/1.016, allocations: 4.617 MB / 0.5744 GB, free: 79.71 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006801/1.022, allocations: 0.6585 MB / 0.5751 GB, free: 79.05 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004677/1.023, allocations: 76 kB / 0.5752 GB, free: 78.98 MB / 430.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.009281/1.032, allocations: 8.119 MB / 0.5831 GB, free: 70.85 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004706/1.037, allocations: 1.392 MB / 0.5844 GB, free: 69.44 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01178/1.049, allocations: 6.022 MB / 0.5903 GB, free: 63.39 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.349e-05/1.049, allocations: 16 kB / 0.5903 GB, free: 63.38 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/1.049, allocations: 4 kB / 0.5903 GB, free: 63.38 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.457e-05/1.049, allocations: 7.969 kB / 0.5903 GB, free: 63.37 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03712/1.086, allocations: 18.53 MB / 0.6084 GB, free: 44.79 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/1.086, allocations: 0 / 0.6084 GB, free: 44.79 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00184/1.088, allocations: 0.5655 MB / 0.609 GB, free: 44.22 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007508/1.089, allocations: 287.9 kB / 0.6093 GB, free: 43.94 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001518/1.089, allocations: 44.86 kB / 0.6093 GB, free: 43.9 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003665/1.092, allocations: 4.036 MB / 0.6133 GB, free: 39.74 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/1.092, allocations: 0 / 0.6133 GB, free: 39.74 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01398/1.106, allocations: 7.612 MB / 0.6207 GB, free: 32.08 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009888/1.116, allocations: 4.193 MB / 0.6248 GB, free: 27.85 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004795/1.121, allocations: 47.98 kB / 0.6248 GB, free: 27.8 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007241/1.128, allocations: 0.6628 MB / 0.6255 GB, free: 27.14 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009551/1.129, allocations: 396.7 kB / 0.6259 GB, free: 26.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000153/1.13, allocations: 44 kB / 0.6259 GB, free: 26.71 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0468/1.176, allocations: 25.59 MB / 0.6509 GB, free: 1.195 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.3e-07/1.176, allocations: 4 kB / 0.6509 GB, free: 1.191 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00887/1.185, allocations: 1.838 MB / 0.6527 GB, free: 15.35 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.001292/1.187, allocations: 432.4 kB / 0.6531 GB, free: 15.09 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01294/1.2, allocations: 6.965 MB / 0.6599 GB, free: 8.129 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.418e-05/1.2, allocations: 5.219 kB / 0.6599 GB, free: 8.125 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004259/1.204, allocations: 2.263 MB / 0.6621 GB, free: 5.848 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01843/1.222, allocations: 2.124 MB / 0.6642 GB, free: 3.742 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2585/1.481, allocations: 38.83 MB / 0.7021 GB, free: 147.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02194/1.503, allocations: 10.14 MB / 0.712 GB, free: 145.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005575/1.509, allocations: 0.6839 MB / 0.7127 GB, free: 145.1 MB / 478.1 MB Notification: Performance of SimCode: time 7.92e-07/1.509, allocations: 0 / 0.7127 GB, free: 145.1 MB / 478.1 MB Notification: Performance of Templates: time 0.5447/2.053, allocations: 305 MB / 1.01 GB, free: 2.895 MB / 478.1 MB 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)