Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Stack,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Stack",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001327/0.001327, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001433/0.001433, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.425/1.425, allocations: 227.7 MB / 247.2 MB, free: 10.23 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 64.03 kB / 358.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2438/0.2458, allocations: 50.55 MB / 409 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_Stack): time 0.01167/0.2575, allocations: 10.09 MB / 419.1 MB, free: 7.414 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005874/0.2634, allocations: 3.626 MB / 422.8 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001059/0.2645, allocations: 23.94 kB / 422.8 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002623/0.2672, allocations: 1.175 MB / 424 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00183/0.269, allocations: 0.6801 MB / 424.6 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001192/0.2702, allocations: 490.9 kB / 425.1 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007935/0.2782, allocations: 7.352 MB / 432.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005278/0.2835, allocations: 4.485 MB / 437 MB, free: 5.473 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003825/0.2874, allocations: 2.839 MB / 439.8 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004227/0.2916, allocations: 2.935 MB / 442.7 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001462/0.2931, allocations: 0.6797 MB / 443.4 MB, free: 15 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001704/0.2948, allocations: 0.7187 MB / 444.1 MB, free: 14.28 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005205/0.3001, allocations: 5.822 MB / 449.9 MB, free: 8.445 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01006/0.3101, allocations: 7.183 MB / 457.1 MB, free: 1.223 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02574/0.3359, allocations: 25.01 MB / 482.1 MB, free: 8.133 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.3359, allocations: 3.938 kB / 482.1 MB, free: 8.129 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.336, allocations: 0 / 482.1 MB, free: 8.129 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0007281/0.3367, allocations: 4 kB / 482.1 MB, free: 8.125 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.04877/0.3855, allocations: 19.23 MB / 0.4896 GB, free: 4.738 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.3855, allocations: 8.031 kB / 0.4896 GB, free: 4.73 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001457/0.387, allocations: 499.6 kB / 0.4901 GB, free: 4.23 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005436/0.3925, allocations: 1.642 MB / 0.4917 GB, free: 2.578 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03899/0.4315, allocations: 17.91 MB / 0.5092 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004385/0.4319, allocations: 336.2 kB / 0.5095 GB, free: 260 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009171/0.4329, allocations: 328 kB / 0.5098 GB, free: 15.93 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01232/0.4452, allocations: 6.495 MB / 0.5162 GB, free: 9.207 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.255e-05/0.4453, allocations: 4 kB / 0.5162 GB, free: 9.203 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000513/0.4458, allocations: 144 kB / 0.5163 GB, free: 9.062 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.759e-05/0.4459, allocations: 84 kB / 0.5164 GB, free: 8.98 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01074/0.4567, allocations: 5.126 MB / 0.5214 GB, free: 3.844 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4511/0.9078, allocations: 33.45 MB / 0.5541 GB, free: 99.44 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006459/0.9143, allocations: 4.308 MB / 0.5583 GB, free: 97.49 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003514/0.9179, allocations: 2.587 MB / 0.5608 GB, free: 96.37 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001105/0.918, allocations: 18.69 kB / 0.5608 GB, free: 96.37 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.174e-05/0.918, allocations: 62.75 kB / 0.5609 GB, free: 96.31 MB / 462.1 MB Notification: Performance of pre-optimization done (n=156): time 3.716e-06/0.9181, allocations: 0 / 0.5609 GB, free: 96.31 MB / 462.1 MB Notification: Performance of matching and sorting (n=156): time 0.01661/0.9347, allocations: 7.609 MB / 0.5683 GB, free: 89.67 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001982/0.9349, allocations: 0.9824 MB / 0.5693 GB, free: 88.46 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.06988/1.005, allocations: 35.88 MB / 0.6043 GB, free: 52.68 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004804/1.005, allocations: 69.7 kB / 0.6044 GB, free: 52.61 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.01371/1.019, allocations: 7.531 MB / 0.6117 GB, free: 45.38 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006434/1.02, allocations: 0.5703 MB / 0.6123 GB, free: 44.88 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006678/1.02, allocations: 433.5 kB / 0.6127 GB, free: 44.45 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.288e-05/1.02, allocations: 301.1 kB / 0.613 GB, free: 44.16 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002866/1.023, allocations: 1.971 MB / 0.6149 GB, free: 42.18 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003312/1.027, allocations: 2.856 MB / 0.6177 GB, free: 39.02 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005868/1.033, allocations: 4.203 MB / 0.6218 GB, free: 34.61 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.369e-05/1.033, allocations: 4 kB / 0.6218 GB, free: 34.61 MB / 462.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.01463/1.047, allocations: 6.103 MB / 0.6278 GB, free: 28.48 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.127e-05/1.047, allocations: 19.44 kB / 0.6278 GB, free: 28.46 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.067e-05/1.047, allocations: 17.03 kB / 0.6278 GB, free: 28.45 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008818/1.048, allocations: 377 kB / 0.6282 GB, free: 28.09 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00225/1.05, allocations: 0.6941 MB / 0.6288 GB, free: 27.39 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004232/1.055, allocations: 4.616 MB / 0.6334 GB, free: 22.66 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008112/1.063, allocations: 0.6565 MB / 0.634 GB, free: 22.06 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005713/1.063, allocations: 80 kB / 0.6341 GB, free: 21.98 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.0103/1.074, allocations: 8.143 MB / 0.642 GB, free: 13.83 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004611/1.078, allocations: 1.478 MB / 0.6435 GB, free: 12.34 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01154/1.09, allocations: 6.033 MB / 0.6494 GB, free: 6.301 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.279e-05/1.09, allocations: 16 kB / 0.6494 GB, free: 6.285 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/1.09, allocations: 3.938 kB / 0.6494 GB, free: 6.285 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.277e-05/1.09, allocations: 7.969 kB / 0.6494 GB, free: 6.277 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04323/1.133, allocations: 18.58 MB / 0.6675 GB, free: 3.672 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.695e-06/1.133, allocations: 0 / 0.6675 GB, free: 3.672 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002018/1.135, allocations: 0.5616 MB / 0.6681 GB, free: 3.109 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008589/1.136, allocations: 298.7 kB / 0.6684 GB, free: 2.82 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001489/1.136, allocations: 39.98 kB / 0.6684 GB, free: 2.781 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005011/1.141, allocations: 4.035 MB / 0.6723 GB, free: 14.62 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/1.141, allocations: 0 / 0.6723 GB, free: 14.62 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01691/1.158, allocations: 7.712 MB / 0.6799 GB, free: 6.875 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009455/1.168, allocations: 4.274 MB / 0.6841 GB, free: 2.594 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003764/1.172, allocations: 43.98 kB / 0.6841 GB, free: 2.551 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005653/1.177, allocations: 0.6551 MB / 0.6847 GB, free: 1.895 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008762/1.178, allocations: 436.7 kB / 0.6852 GB, free: 1.465 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001365/1.178, allocations: 44 kB / 0.6852 GB, free: 1.422 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.04816/1.226, allocations: 25.68 MB / 0.7103 GB, free: 7.816 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.535e-06/1.226, allocations: 0 / 0.7103 GB, free: 7.816 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.007952/1.234, allocations: 1.842 MB / 0.7121 GB, free: 6.043 MB / 0.5138 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.01833/1.253, allocations: 8.652 MB / 0.7205 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008441/1.261, allocations: 4.488 MB / 0.7249 GB, free: 9.008 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.938e-06/1.261, allocations: 9.281 kB / 0.7249 GB, free: 9 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004177/1.265, allocations: 2.268 MB / 0.7271 GB, free: 6.719 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01638/1.282, allocations: 2.105 MB / 0.7292 GB, free: 4.641 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6215/1.903, allocations: 226.3 MB / 0.9502 GB, free: 3.008 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02084/1.924, allocations: 10.2 MB / 0.9602 GB, free: 8.777 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.2457/2.17, allocations: 7.682 MB / 0.9677 GB, free: 190.3 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01467/2.185, allocations: 6.097 MB / 0.9736 GB, free: 186.8 MB / 0.5607 GB Notification: Performance of SimCode: time 1.182e-06/2.185, allocations: 0 / 0.9736 GB, free: 186.8 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.628/2.813, allocations: 330.2 MB / 1.296 GB, free: 77.21 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 182.7/185.6, allocations: 1.953 kB / 1.296 GB, free: 77.21 MB / 0.5607 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Stack_fmu --startTime=0 --stopTime=1200 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_Stack.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_Stack.pipe 2>&1)