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.001059/0.001063, allocations: 109.2 kB / 17.74 MB, free: 5.332 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.001123/0.001123, allocations: 184.3 kB / 18.68 MB, free: 4.41 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.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009681/0.0009682, allocations: 43.92 kB / 352 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2331/0.2341, allocations: 49.44 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01008/0.2442, allocations: 10.05 MB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004606/0.2489, allocations: 3.462 MB / 414.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004561/0.2493, allocations: 23.88 kB / 414.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002187/0.2515, allocations: 1.183 MB / 416.1 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001037/0.2526, allocations: 0.653 MB / 416.8 MB, free: 9.441 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009862/0.2536, allocations: 491.7 kB / 417.3 MB, free: 8.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00683/0.2604, allocations: 7.355 MB / 424.6 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00478/0.2652, allocations: 4.458 MB / 429.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003623/0.2689, allocations: 2.859 MB / 431.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00383/0.2727, allocations: 2.923 MB / 434.9 MB, free: 7.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001566/0.2743, allocations: 0.6758 MB / 435.5 MB, free: 6.574 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001475/0.2758, allocations: 0.7265 MB / 436.3 MB, free: 5.848 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004299/0.2801, allocations: 5.802 MB / 442.1 MB, free: 32 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008929/0.289, allocations: 7.188 MB / 449.2 MB, free: 8.801 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01987/0.3089, allocations: 24.88 MB / 474.1 MB, free: 15.86 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.309, allocations: 0 / 474.1 MB, free: 15.86 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.309, allocations: 0 / 474.1 MB, free: 15.86 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004373/0.3094, 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.04316/0.3526, allocations: 18.65 MB / 492.8 MB, free: 13.05 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.3526, allocations: 11.97 kB / 492.8 MB, free: 13.04 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005505/0.3582, allocations: 1.551 MB / 494.3 MB, free: 11.46 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04078/0.399, allocations: 17.74 MB / 0.5001 GB, free: 9.637 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005572/0.3996, allocations: 336.2 kB / 0.5004 GB, free: 9.301 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001195/0.4008, allocations: 324 kB / 0.5007 GB, free: 8.984 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01405/0.4148, allocations: 6.491 MB / 0.507 GB, free: 2.27 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001059/0.415, allocations: 0 / 0.507 GB, free: 2.27 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001097/0.4161, allocations: 148 kB / 0.5072 GB, free: 2.125 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.387e-05/0.4162, allocations: 80 kB / 0.5073 GB, free: 2.047 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01026/0.4264, allocations: 5.123 MB / 0.5123 GB, free: 12.91 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4411/0.8675, allocations: 33.41 MB / 0.5449 GB, free: 105.4 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006584/0.8741, allocations: 4.304 MB / 0.5491 GB, free: 104.6 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003648/0.8778, allocations: 2.584 MB / 0.5516 GB, free: 104 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.951e-05/0.8779, allocations: 20.25 kB / 0.5516 GB, free: 104 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.482e-05/0.878, allocations: 73.88 kB / 0.5517 GB, free: 103.9 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 3.266e-06/0.878, allocations: 0 / 0.5517 GB, free: 103.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.01566/0.8936, allocations: 7.524 MB / 0.5591 GB, free: 101.2 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001701/0.8938, allocations: 0.9809 MB / 0.56 GB, free: 100 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.05364/0.9475, allocations: 35.77 MB / 0.5949 GB, free: 68.59 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004065/0.9479, allocations: 65.7 kB / 0.595 GB, free: 68.52 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.008435/0.9563, allocations: 7.46 MB / 0.6023 GB, free: 61.26 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000558/0.9569, allocations: 0.5503 MB / 0.6028 GB, free: 60.72 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006241/0.9575, allocations: 426.8 kB / 0.6032 GB, free: 60.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.16e-05/0.9576, allocations: 309.1 kB / 0.6035 GB, free: 59.99 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002951/0.9605, allocations: 1.963 MB / 0.6055 GB, free: 58.03 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003228/0.9638, allocations: 2.857 MB / 0.6082 GB, free: 54.85 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005589/0.9694, allocations: 4.206 MB / 0.6123 GB, free: 50.44 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.528e-06/0.9694, allocations: 11.5 kB / 0.6124 GB, free: 50.43 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01222/0.9816, allocations: 6.025 MB / 0.6182 GB, free: 44.38 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.42e-05/0.9817, allocations: 16.14 kB / 0.6183 GB, free: 44.36 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.103e-05/0.9817, allocations: 22.08 kB / 0.6183 GB, free: 44.34 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009298/0.9827, allocations: 363.9 kB / 0.6186 GB, free: 43.98 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002068/0.9847, allocations: 0.6941 MB / 0.6193 GB, free: 43.29 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004329/0.9891, allocations: 4.613 MB / 0.6238 GB, free: 38.54 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007213/0.9963, allocations: 0.6529 MB / 0.6244 GB, free: 37.88 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000253/0.9966, allocations: 76 kB / 0.6245 GB, free: 37.8 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.009546/1.006, allocations: 8.124 MB / 0.6325 GB, free: 29.66 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004517/1.011, allocations: 1.388 MB / 0.6338 GB, free: 28.26 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01093/1.022, allocations: 6.035 MB / 0.6397 GB, free: 22.21 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.454e-05/1.022, allocations: 11.91 kB / 0.6397 GB, free: 22.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.539e-06/1.022, allocations: 3.938 kB / 0.6397 GB, free: 22.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.01084/1.032, allocations: 4.185 MB / 0.6438 GB, free: 17.97 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004268/1.037, allocations: 54.8 kB / 0.6439 GB, free: 17.92 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006205/1.043, allocations: 0.6513 MB / 0.6445 GB, free: 17.27 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007793/1.044, allocations: 432.7 kB / 0.6449 GB, free: 16.85 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01332/1.057, allocations: 6.965 MB / 0.6517 GB, free: 9.895 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01235/1.069, allocations: 7.426 MB / 0.659 GB, free: 2.434 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002953/1.072, allocations: 2.052 MB / 0.661 GB, free: 392 kB / 462.1 MB Notification: Performance of sorting global known variables: time 0.04557/1.118, allocations: 25.59 MB / 0.686 GB, free: 6.867 MB / 494.1 MB Notification: Performance of Backend: time 9.52e-07/1.118, allocations: 0 / 0.686 GB, free: 6.867 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01306/1.131, allocations: 3.874 MB / 0.6897 GB, free: 3.184 MB / 494.1 MB Notification: Performance of SimCode: time 0.07074/1.202, allocations: 38.23 MB / 0.7271 GB, free: 12.92 MB / 0.5294 GB Notification: Performance of Templates: time 0.4497/1.652, allocations: 167.3 MB / 0.8905 GB, free: 44.09 MB / 0.5294 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)