Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.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_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_4.0.0_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_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 110.2 kB / 17.75 MB, free: 5.336 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.001153/0.001153, allocations: 185.4 kB / 18.67 MB, free: 4.418 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.309/1.309, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 47.92 kB / 352 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2389, allocations: 49.42 MB / 401.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC): time 0.01155/0.2505, allocations: 11.24 MB / 412.6 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00645/0.257, allocations: 3.775 MB / 416.4 MB, free: 9.777 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001676/0.2587, allocations: 27.88 kB / 416.4 MB, free: 9.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008346/0.2671, allocations: 5.791 MB / 422.2 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00191/0.269, allocations: 0.4967 MB / 422.7 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001493/0.2706, allocations: 0.5087 MB / 423.2 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02247/0.293, allocations: 21.63 MB / 444.9 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01061/0.3037, allocations: 9.556 MB / 454.4 MB, free: 3.633 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.05461/0.3583, allocations: 49.89 MB / 0.4925 GB, free: 1.688 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005498/0.3638, allocations: 3.9 MB / 0.4963 GB, free: 13.77 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002342/0.3662, allocations: 0.9609 MB / 0.4972 GB, free: 12.81 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002862/0.3691, allocations: 1.015 MB / 0.4982 GB, free: 11.8 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003947/0.373, allocations: 3.854 MB / 0.502 GB, free: 7.934 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007228/0.3803, allocations: 5.17 MB / 0.507 GB, free: 2.738 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01575/0.3961, allocations: 17.6 MB / 0.5242 GB, free: 1.09 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.3961, allocations: 0 / 0.5242 GB, free: 1.09 MB / 446.1 MB Notification: Performance of FrontEnd: time 5.36e-06/0.3961, allocations: 0 / 0.5242 GB, free: 1.09 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004322/0.3965, allocations: 3.938 kB / 0.5242 GB, free: 1.086 MB / 446.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.02929/0.4258, allocations: 12.41 MB / 0.5363 GB, free: 4.562 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.4259, allocations: 8.031 kB / 0.5364 GB, free: 4.555 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002149/0.4281, allocations: 1.047 MB / 0.5374 GB, free: 3.496 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.378/0.806, allocations: 11.15 MB / 0.5483 GB, free: 124.5 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004257/0.8065, allocations: 0.5443 MB / 0.5488 GB, free: 124.1 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000971/0.8075, allocations: 397.6 kB / 0.5492 GB, free: 124 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01291/0.8204, allocations: 8.548 MB / 0.5575 GB, free: 117.6 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.839e-05/0.8205, allocations: 7.938 kB / 0.5575 GB, free: 117.6 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005681/0.8211, allocations: 176 kB / 0.5577 GB, free: 117.4 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.26e-05/0.8211, allocations: 99.94 kB / 0.5578 GB, free: 117.3 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0102/0.8313, allocations: 7.142 MB / 0.5648 GB, free: 110.2 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04515/0.8765, allocations: 28.56 MB / 0.5927 GB, free: 81.48 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008716/0.8853, allocations: 6.086 MB / 0.5986 GB, free: 75.55 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005766/0.8911, allocations: 4.321 MB / 0.6028 GB, free: 71.23 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000109/0.8912, allocations: 25.98 kB / 0.6029 GB, free: 71.2 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.474e-05/0.8913, allocations: 84.92 kB / 0.6029 GB, free: 71.11 MB / 462.1 MB Notification: Performance of pre-optimization done (n=231): time 4.378e-06/0.8913, allocations: 0 / 0.6029 GB, free: 71.11 MB / 462.1 MB Notification: Performance of matching and sorting (n=231): time 0.01822/0.9095, allocations: 9.812 MB / 0.6125 GB, free: 61.25 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002107/0.9097, allocations: 1.3 MB / 0.6138 GB, free: 59.65 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02033/0.9301, allocations: 14.73 MB / 0.6282 GB, free: 44.94 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006312/0.9307, allocations: 81.7 kB / 0.6282 GB, free: 44.86 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003487/0.9342, allocations: 4.401 MB / 0.6325 GB, free: 40.44 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008175/0.9351, allocations: 0.8204 MB / 0.6333 GB, free: 39.61 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009798/0.936, allocations: 0.6159 MB / 0.6339 GB, free: 38.98 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.343e-05/0.9361, allocations: 301.1 kB / 0.6342 GB, free: 38.69 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004031/0.9401, allocations: 2.96 MB / 0.6371 GB, free: 35.72 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004566/0.9447, allocations: 4.025 MB / 0.6411 GB, free: 31.33 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007737/0.9524, allocations: 6.093 MB / 0.647 GB, free: 24.99 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.274e-05/0.9525, allocations: 4 kB / 0.647 GB, free: 24.98 MB / 462.1 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.01245/0.9649, allocations: 7.692 MB / 0.6545 GB, free: 17.23 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/0.965, allocations: 12 kB / 0.6545 GB, free: 17.22 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.248e-05/0.965, allocations: 19.98 kB / 0.6546 GB, free: 17.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001138/0.9662, allocations: 0.5431 MB / 0.6551 GB, free: 16.65 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003312/0.9695, allocations: 1.008 MB / 0.6561 GB, free: 15.64 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00606/0.9756, allocations: 6.395 MB / 0.6623 GB, free: 9.105 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005444/0.981, allocations: 0.8322 MB / 0.6631 GB, free: 8.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004926/0.9815, allocations: 99.98 kB / 0.6632 GB, free: 8.172 MB / 462.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.005814/0.9874, allocations: 4.771 MB / 0.6679 GB, free: 3.383 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002328/0.9897, allocations: 0.8642 MB / 0.6687 GB, free: 2.508 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002947/0.9927, allocations: 1.301 MB / 0.67 GB, free: 1.199 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.719e-05/0.9927, allocations: 11.95 kB / 0.67 GB, free: 1.188 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.522e-06/0.9927, allocations: 0 / 0.67 GB, free: 1.188 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005259/0.998, allocations: 2.231 MB / 0.6722 GB, free: 14.93 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001675/0.9996, allocations: 87.97 kB / 0.6723 GB, free: 14.84 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004382/1.004, allocations: 0.8584 MB / 0.6731 GB, free: 13.98 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009591/1.005, allocations: 485.3 kB / 0.6736 GB, free: 13.51 MB / 478.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01935/1.024, allocations: 9.236 MB / 0.6826 GB, free: 4.25 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01589/1.04, allocations: 9.607 MB / 0.692 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004498/1.045, allocations: 2.959 MB / 0.6949 GB, free: 7.645 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0209/1.066, allocations: 10.51 MB / 0.7051 GB, free: 13.16 MB / 0.4982 GB Notification: Performance of Backend: time 9.22e-07/1.066, allocations: 0 / 0.7051 GB, free: 13.16 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.01437/1.08, allocations: 4.796 MB / 0.7098 GB, free: 8.625 MB / 0.4982 GB Notification: Performance of SimCode: time 0.03876/1.119, allocations: 23.49 MB / 0.7328 GB, free: 1.113 MB / 0.5138 GB Notification: Performance of Templates: time 0.3641/1.483, allocations: 123.6 MB / 0.8535 GB, free: 69.84 MB / 0.5138 GB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.sim & ./Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe 2>&1)