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_StackRC.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_StackRC,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_StackRC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_StackRC,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_StackRC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001704/0.001704, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001915/0.001915, allocations: 198 kB / 18.73 MB, free: 4.312 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.412/1.412, allocations: 227.7 MB / 247.2 MB, free: 10.16 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.00191/0.00191, allocations: 59.89 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2827/0.2846, allocations: 50.55 MB / 409.1 MB, free: 1.336 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.CCCV_StackRC): time 0.01349/0.2982, allocations: 11.28 MB / 420.3 MB, free: 6.012 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006584/0.3048, allocations: 3.93 MB / 424.3 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001258/0.3061, allocations: 27.88 kB / 424.3 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008194/0.3143, allocations: 5.736 MB / 430 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001828/0.3162, allocations: 0.5122 MB / 430.5 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001404/0.3176, allocations: 0.5103 MB / 431 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02457/0.3422, allocations: 21.41 MB / 452.5 MB, free: 5.832 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.011/0.3532, allocations: 9.498 MB / 462 MB, free: 12.24 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.05697/0.4102, allocations: 48.96 MB / 0.499 GB, free: 11.22 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008583/0.4189, allocations: 3.896 MB / 0.5028 GB, free: 7.312 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004686/0.4237, allocations: 0.9648 MB / 0.5037 GB, free: 6.348 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006631/0.4303, allocations: 1.027 MB / 0.5047 GB, free: 5.32 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007725/0.4381, allocations: 3.854 MB / 0.5085 GB, free: 1.457 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01358/0.4518, allocations: 5.178 MB / 0.5135 GB, free: 12.25 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03371/0.4855, allocations: 17.69 MB / 0.5308 GB, free: 10.5 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.131e-05/0.4856, allocations: 7.938 kB / 0.5308 GB, free: 10.5 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.4857, allocations: 0 / 0.5308 GB, free: 10.5 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0005705/0.4862, allocations: 0 / 0.5308 GB, free: 10.5 MB / 462.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.4689/0.9552, allocations: 12.78 MB / 0.5433 GB, free: 119.4 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.531e-05/0.9552, allocations: 9.688 kB / 0.5433 GB, free: 119.4 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002673/0.9579, allocations: 0.599 MB / 0.5439 GB, free: 119.1 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003992/0.9619, allocations: 1.107 MB / 0.545 GB, free: 118.5 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01975/0.9817, allocations: 11.28 MB / 0.556 GB, free: 111.7 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005792/0.9823, allocations: 0.5466 MB / 0.5565 GB, free: 111.1 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001474/0.9838, allocations: 400 kB / 0.5569 GB, free: 110.7 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01558/0.9994, allocations: 8.547 MB / 0.5652 GB, free: 101.9 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-05/0.9995, allocations: 3.984 kB / 0.5652 GB, free: 101.9 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007282/1, allocations: 179.3 kB / 0.5654 GB, free: 101.7 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.337e-05/1, allocations: 96 kB / 0.5655 GB, free: 101.6 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01215/1.012, allocations: 7.142 MB / 0.5725 GB, free: 94.5 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04741/1.06, allocations: 28.63 MB / 0.6004 GB, free: 65.77 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009264/1.069, allocations: 6.087 MB / 0.6064 GB, free: 59.83 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006397/1.076, allocations: 4.324 MB / 0.6106 GB, free: 55.51 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002104/1.076, allocations: 26 kB / 0.6106 GB, free: 55.48 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.091e-05/1.076, allocations: 81 kB / 0.6107 GB, free: 55.39 MB / 462.1 MB Notification: Performance of pre-optimization done (n=231): time 5.44e-06/1.076, allocations: 3.094 kB / 0.6107 GB, free: 55.39 MB / 462.1 MB Notification: Performance of matching and sorting (n=231): time 0.02123/1.097, allocations: 9.869 MB / 0.6203 GB, free: 45.48 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000233/1.097, allocations: 1.296 MB / 0.6216 GB, free: 43.88 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03089/1.128, allocations: 14.84 MB / 0.6361 GB, free: 29.08 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007999/1.129, allocations: 77.7 kB / 0.6362 GB, free: 29 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.006162/1.135, allocations: 4.485 MB / 0.6406 GB, free: 24.7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001171/1.137, allocations: 0.8569 MB / 0.6414 GB, free: 23.86 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002366/1.139, allocations: 0.6114 MB / 0.642 GB, free: 23.24 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.488e-05/1.139, allocations: 305.1 kB / 0.6423 GB, free: 22.94 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004363/1.143, allocations: 2.96 MB / 0.6452 GB, free: 19.98 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004736/1.148, allocations: 4.027 MB / 0.6491 GB, free: 15.58 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008019/1.156, allocations: 6.089 MB / 0.655 GB, free: 9.242 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.655e-05/1.156, allocations: 4 kB / 0.6551 GB, free: 9.238 MB / 462.1 MB Notification: Performance of matching and sorting (n=348) (initialization): time 0.01335/1.17, allocations: 7.731 MB / 0.6626 GB, free: 1.449 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/1.17, allocations: 15.92 kB / 0.6626 GB, free: 1.434 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.206e-05/1.17, allocations: 20.09 kB / 0.6626 GB, free: 1.414 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001232/1.171, allocations: 0.547 MB / 0.6632 GB, free: 0.8633 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003516/1.174, allocations: 1.006 MB / 0.6642 GB, free: 15.86 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008621/1.183, allocations: 6.388 MB / 0.6704 GB, free: 9.324 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006204/1.189, allocations: 0.8409 MB / 0.6712 GB, free: 8.48 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008313/1.19, allocations: 104 kB / 0.6713 GB, free: 8.379 MB / 478.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.009309/1.2, allocations: 4.783 MB / 0.676 GB, free: 3.582 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00331/1.203, allocations: 0.916 MB / 0.6769 GB, free: 2.66 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004383/1.207, allocations: 1.321 MB / 0.6782 GB, free: 1.332 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.24e-05/1.207, allocations: 20 kB / 0.6782 GB, free: 1.312 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.406e-05/1.207, allocations: 3.984 kB / 0.6782 GB, free: 1.309 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.2e-05/1.207, allocations: 8.062 kB / 0.6782 GB, free: 1.301 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03857/1.246, allocations: 15.96 MB / 0.6938 GB, free: 1.258 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.611e-05/1.246, allocations: 0 / 0.6938 GB, free: 1.258 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003503/1.25, allocations: 0.8426 MB / 0.6946 GB, free: 424 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001342/1.251, allocations: 468.4 kB / 0.6951 GB, free: 15.95 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006026/1.252, allocations: 75.97 kB / 0.6951 GB, free: 15.88 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007686/1.259, allocations: 5.493 MB / 0.7005 GB, free: 10.25 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/1.259, allocations: 3.938 kB / 0.7005 GB, free: 10.24 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02071/1.28, allocations: 9.886 MB / 0.7101 GB, free: 316 kB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006499/1.287, allocations: 2.275 MB / 0.7124 GB, free: 14 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003191/1.29, allocations: 79.97 kB / 0.7124 GB, free: 13.93 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006102/1.296, allocations: 0.8662 MB / 0.7133 GB, free: 13.06 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001429/1.297, allocations: 481.3 kB / 0.7137 GB, free: 12.59 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005252/1.298, allocations: 67.98 kB / 0.7138 GB, free: 12.52 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.02728/1.325, allocations: 10.58 MB / 0.7241 GB, free: 1.973 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.81e-07/1.325, allocations: 0 / 0.7241 GB, free: 1.973 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.007378/1.333, allocations: 1.564 MB / 0.7257 GB, free: 416 kB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 25 (stack.cell[1,1].cell.limIntegrator.y,stack.cell[1,1].cell.capacitor[1].v,stack.cell[1,1].cell.capacitor[2].v,stack.cell[1,1].limIntegrator.y,stack.cell[1,2].cell.limIntegrator.y,stack.cell[1,2].cell.capacitor[1].v,stack.cell[1,2].cell.capacitor[2].v,stack.cell[1,2].limIntegrator.y,stack.cell[2,1].cell.limIntegrator.y,stack.cell[2,1].cell.capacitor[1].v,stack.cell[2,1].cell.capacitor[2].v,stack.cell[2,1].limIntegrator.y,stack.cell[2,2].cell.limIntegrator.y,stack.cell[2,2].cell.capacitor[1].v,stack.cell[2,2].cell.capacitor[2].v,stack.cell[2,2].limIntegrator.y,stack.cell[3,1].cell.limIntegrator.y,stack.cell[3,1].cell.capacitor[1].v,stack.cell[3,1].cell.capacitor[2].v,stack.cell[3,1].limIntegrator.y,stack.cell[3,2].cell.limIntegrator.y,stack.cell[3,2].cell.capacitor[1].v,stack.cell[3,2].cell.capacitor[2].v,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 (201): * Single equations (assignments): 200 * 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,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02472/1.357, allocations: 10.93 MB / 0.7364 GB, free: 5.613 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.2547/1.612, allocations: 6.478 MB / 0.7427 GB, free: 191.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.35e-05/1.612, allocations: 7.812 kB / 0.7427 GB, free: 191.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006828/1.619, allocations: 3.381 MB / 0.746 GB, free: 191.2 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0122/1.631, allocations: 2.203 MB / 0.7481 GB, free: 190.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1849/1.816, allocations: 107.4 MB / 0.853 GB, free: 91.42 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01307/1.829, allocations: 6.768 MB / 0.8596 GB, free: 84.62 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.009038/1.838, allocations: 3.331 MB / 0.8628 GB, free: 81.28 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007762/1.846, allocations: 3.666 MB / 0.8664 GB, free: 77.62 MB / 0.5294 GB Notification: Performance of SimCode: time 1.092e-06/1.846, allocations: 0 / 0.8664 GB, free: 77.62 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5612/2.407, allocations: 212.9 MB / 1.074 GB, free: 58.67 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 36/38.41, allocations: 3.078 kB / 1.074 GB, free: 58.67 MB / 0.5294 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_StackRC_res.csv --start-time 0 --stop-time 1200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 Modelica_4_1_0-beta_om_Modelica_Electrical_Batteries_Examples_CCCV_StackRC.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Batteries.Examples.CCCV_StackRC.pipe 2>&1)