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.001072/0.001073, allocations: 108.3 kB / 17.74 MB, free: 5.359 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.001058/0.001058, allocations: 191 kB / 18.67 MB, free: 4.434 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.307/1.307, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009308/0.0009308, allocations: 39.94 kB / 352 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2927/0.2937, allocations: 49.44 MB / 401.4 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01058/0.3043, allocations: 10.05 MB / 411.4 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005775/0.3101, allocations: 3.47 MB / 414.9 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008058/0.311, allocations: 19.94 kB / 414.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002742/0.3137, allocations: 1.179 MB / 416.1 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00138/0.3152, allocations: 0.6412 MB / 416.8 MB, free: 9.621 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001068/0.3163, allocations: 487.7 kB / 417.2 MB, free: 9.148 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007282/0.3236, allocations: 7.359 MB / 424.6 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00502/0.3286, allocations: 4.45 MB / 429 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004085/0.3328, allocations: 2.851 MB / 431.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004223/0.337, allocations: 2.935 MB / 434.8 MB, free: 7.434 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001624/0.3387, allocations: 0.6758 MB / 435.5 MB, free: 6.758 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002082/0.3408, allocations: 0.7187 MB / 436.2 MB, free: 6.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004994/0.3458, allocations: 5.806 MB / 442 MB, free: 224 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01067/0.3565, allocations: 7.184 MB / 449.2 MB, free: 8.996 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02205/0.3785, allocations: 24.88 MB / 474.1 MB, free: 48 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.3786, allocations: 0 / 474.1 MB, free: 48 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3786, allocations: 0 / 474.1 MB, free: 48 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006938/0.3793, allocations: 4 kB / 474.1 MB, free: 44 kB / 382.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.05027/0.4296, allocations: 18.65 MB / 492.7 MB, free: 13.23 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.4297, allocations: 8.031 kB / 492.8 MB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006388/0.436, allocations: 1.551 MB / 494.3 MB, free: 11.66 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03858/0.4747, allocations: 17.74 MB / 0.5 GB, free: 9.828 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004317/0.4751, allocations: 336.2 kB / 0.5004 GB, free: 9.492 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009781/0.4761, allocations: 320 kB / 0.5007 GB, free: 9.18 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01187/0.488, allocations: 6.495 MB / 0.507 GB, free: 2.461 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.248e-05/0.4881, allocations: 3.938 kB / 0.507 GB, free: 2.457 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004795/0.4886, allocations: 144 kB / 0.5071 GB, free: 2.316 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.059e-05/0.4887, allocations: 80 kB / 0.5072 GB, free: 2.238 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009907/0.4986, allocations: 5.13 MB / 0.5122 GB, free: 13.1 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4954/0.994, allocations: 33.4 MB / 0.5449 GB, free: 105.5 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006623/1.001, allocations: 4.303 MB / 0.5491 GB, free: 104.7 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003653/1.004, allocations: 2.59 MB / 0.5516 GB, free: 104.1 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000107/1.005, allocations: 21.47 kB / 0.5516 GB, free: 104.1 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.421e-05/1.005, allocations: 73 kB / 0.5517 GB, free: 104.1 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 3.827e-06/1.005, allocations: 0 / 0.5517 GB, free: 104.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.01752/1.022, allocations: 7.524 MB / 0.559 GB, free: 101.4 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002094/1.022, allocations: 0.9852 MB / 0.56 GB, free: 100.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06018/1.083, allocations: 35.77 MB / 0.5949 GB, free: 68.94 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004907/1.083, allocations: 61.7 kB / 0.595 GB, free: 68.88 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01222/1.095, allocations: 7.461 MB / 0.6023 GB, free: 61.62 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007864/1.096, allocations: 0.5502 MB / 0.6028 GB, free: 61.08 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007379/1.097, allocations: 427.2 kB / 0.6032 GB, free: 60.66 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.006e-05/1.097, allocations: 305.1 kB / 0.6035 GB, free: 60.36 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002956/1.1, allocations: 1.971 MB / 0.6054 GB, free: 58.38 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003284/1.103, allocations: 2.856 MB / 0.6082 GB, free: 55.21 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005571/1.109, allocations: 4.21 MB / 0.6123 GB, free: 50.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.49e-05/1.109, allocations: 4 kB / 0.6123 GB, free: 50.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.0147/1.124, allocations: 6.039 MB / 0.6182 GB, free: 44.73 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.344e-05/1.124, allocations: 12 kB / 0.6182 GB, free: 44.72 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.472e-05/1.124, allocations: 12 kB / 0.6182 GB, free: 44.71 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009707/1.125, allocations: 372 kB / 0.6186 GB, free: 44.35 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002149/1.127, allocations: 0.6863 MB / 0.6193 GB, free: 43.66 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004234/1.131, allocations: 4.61 MB / 0.6238 GB, free: 38.91 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008911/1.14, allocations: 0.6529 MB / 0.6244 GB, free: 38.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005095/1.14, allocations: 76 kB / 0.6245 GB, free: 38.18 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.01134/1.152, allocations: 8.132 MB / 0.6324 GB, free: 30.04 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005624/1.157, allocations: 1.388 MB / 0.6338 GB, free: 28.63 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0133/1.171, allocations: 6.031 MB / 0.6397 GB, free: 22.59 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.328e-05/1.171, allocations: 19.94 kB / 0.6397 GB, free: 22.57 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/1.171, allocations: 0 / 0.6397 GB, free: 22.57 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/1.171, allocations: 7.969 kB / 0.6397 GB, free: 22.56 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04052/1.211, allocations: 18.53 MB / 0.6578 GB, free: 3.984 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/1.211, allocations: 4 kB / 0.6578 GB, free: 3.98 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001757/1.213, allocations: 0.5616 MB / 0.6583 GB, free: 3.418 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007744/1.214, allocations: 293.9 kB / 0.6586 GB, free: 3.129 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001308/1.214, allocations: 42.39 kB / 0.6587 GB, free: 3.09 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003808/1.218, allocations: 4.037 MB / 0.6626 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/1.218, allocations: 0 / 0.6626 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01709/1.235, allocations: 7.629 MB / 0.6701 GB, free: 7.258 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01172/1.247, allocations: 4.2 MB / 0.6742 GB, free: 3.02 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005283/1.252, allocations: 43.98 kB / 0.6742 GB, free: 2.977 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007759/1.26, allocations: 0.6552 MB / 0.6748 GB, free: 2.32 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001157/1.261, allocations: 436.7 kB / 0.6753 GB, free: 1.891 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001944/1.261, allocations: 40 kB / 0.6753 GB, free: 1.852 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.05849/1.32, allocations: 25.59 MB / 0.7003 GB, free: 8.332 MB / 0.4982 GB Notification: Performance of sort global known variables: time 3.31e-07/1.32, allocations: 0 / 0.7003 GB, free: 8.332 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01096/1.331, allocations: 1.844 MB / 0.7021 GB, free: 6.488 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.001337/1.332, allocations: 435.1 kB / 0.7025 GB, free: 6.199 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.008712/1.341, allocations: 4.488 MB / 0.7069 GB, free: 1.707 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/1.341, allocations: 5.219 kB / 0.7069 GB, free: 1.703 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.004308/1.345, allocations: 2.272 MB / 0.7091 GB, free: 15.42 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02085/1.366, allocations: 2.111 MB / 0.7112 GB, free: 13.33 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3531/1.719, allocations: 38.45 MB / 0.7487 GB, free: 175.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02357/1.743, allocations: 10.14 MB / 0.7586 GB, free: 172.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005826/1.749, allocations: 0.6824 MB / 0.7593 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of SimCode: time 1.213e-06/1.749, allocations: 2.156 kB / 0.7593 GB, free: 172.1 MB / 0.5294 GB Notification: Performance of Templates: time 0.7063/2.455, allocations: 309 MB / 1.061 GB, free: 89.11 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)