Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.167/2.167, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.165e-05/4.175e-05, allocations: 4 kB / 292.2 MB, free: 8.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.111, allocations: 50.41 MB / 342.6 MB, free: 5.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4584/0.5695, allocations: 87.34 MB / 430 MB, free: 6.598 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003163/0.5698, allocations: 82.02 kB / 430.1 MB, free: 6.559 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1072/0.6771, allocations: 26.85 MB / 456.9 MB, free: 15.22 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.856e-06/0.6771, allocations: 0 / 456.9 MB, free: 15.22 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002548/0.6774, allocations: 24 kB / 456.9 MB, free: 15.2 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.004212/0.6816, allocations: 1.477 MB / 458.4 MB, free: 13.76 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.732e-05/0.6817, allocations: 12.03 kB / 458.4 MB, free: 13.75 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002829/0.682, allocations: 93.77 kB / 458.5 MB, free: 13.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006064/0.6826, allocations: 185.7 kB / 458.7 MB, free: 13.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004694/0.6873, allocations: 1.475 MB / 460.2 MB, free: 12.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001316/0.6875, allocations: 63.77 kB / 460.2 MB, free: 12.21 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001241/0.6876, allocations: 52.41 kB / 460.3 MB, free: 12.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001327/0.689, allocations: 0.5352 MB / 460.8 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.438e-05/0.689, allocations: 4 kB / 460.8 MB, free: 11.76 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.043e-05/0.6891, allocations: 21.06 kB / 460.8 MB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.806e-05/0.6892, allocations: 16 kB / 460.9 MB, free: 11.74 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008555/0.69, allocations: 295.4 kB / 461.1 MB, free: 11.56 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008202/0.6982, allocations: 3.316 MB / 464.5 MB, free: 8.414 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001212/0.6995, allocations: 286.8 kB / 464.7 MB, free: 8.125 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004772/0.7, allocations: 145.2 kB / 464.9 MB, free: 7.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.497e-05/0.7001, allocations: 4.188 kB / 464.9 MB, free: 7.977 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.697e-05/0.7001, allocations: 38.75 kB / 464.9 MB, free: 7.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 3.056e-06/0.7001, allocations: 0 / 464.9 MB, free: 7.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.001198/0.7013, allocations: 353.7 kB / 465.3 MB, free: 7.578 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001644/0.7015, allocations: 213.6 kB / 465.5 MB, free: 7.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00739/0.7089, allocations: 2.61 MB / 468.1 MB, free: 4.664 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000102/0.7091, allocations: 33.64 kB / 468.1 MB, free: 4.625 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001154/0.7103, allocations: 0.7815 MB / 468.9 MB, free: 3.836 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/0.7104, allocations: 74.91 kB / 469 MB, free: 3.762 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.41e-05/0.7105, allocations: 15.94 kB / 469 MB, free: 3.746 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.7106, allocations: 317.9 kB / 469.3 MB, free: 3.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002683/0.7109, allocations: 84.66 kB / 469.4 MB, free: 3.344 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000402/0.7113, allocations: 244.7 kB / 469.6 MB, free: 3.035 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003025/0.7116, allocations: 108.3 kB / 469.7 MB, free: 2.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/0.7117, allocations: 0 / 469.7 MB, free: 2.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002066/0.7137, allocations: 0.5193 MB / 470.3 MB, free: 2.402 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.696e-05/0.7138, allocations: 4.188 kB / 470.3 MB, free: 2.398 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/0.7138, allocations: 8 kB / 470.3 MB, free: 2.391 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003163/0.7142, allocations: 52.8 kB / 470.3 MB, free: 2.336 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000575/0.7148, allocations: 79.83 kB / 470.4 MB, free: 2.258 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002039/0.7168, allocations: 1.55 MB / 471.9 MB, free: 0.5742 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001139/0.718, allocations: 67.59 kB / 472 MB, free: 0.5078 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.553e-05/0.7181, allocations: 16 kB / 472 MB, free: 0.4922 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 4 (cccvCharger.CV,energy.local_reset,cell.limIntegrator.local_reset,cell.cell.limIntegrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001769/0.7183, allocations: 129 kB / 472.2 MB, free: 368 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003872/0.7187, allocations: 165.8 kB / 472.3 MB, free: 200 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001224/0.7199, allocations: 402.5 kB / 472.7 MB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.149e-05/0.7199, allocations: 4 kB / 472.7 MB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.7199, allocations: 0 / 472.7 MB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.72, allocations: 0 / 472.7 MB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004226/0.7242, allocations: 1.688 MB / 474.4 MB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.7243, allocations: 0 / 474.4 MB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000487/0.7248, allocations: 47.97 kB / 474.4 MB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002022/0.725, allocations: 40.88 kB / 474.5 MB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.176e-05/0.725, allocations: 7.984 kB / 474.5 MB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00176/0.7268, allocations: 1.483 MB / 476 MB, free: 12.31 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.7268, allocations: 0 / 476 MB, free: 12.31 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001343/0.7282, allocations: 0.5758 MB / 476.6 MB, free: 11.7 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001132/0.7293, allocations: 0.5038 MB / 477.1 MB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00024/0.7296, allocations: 8 kB / 477.1 MB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008902/0.7305, allocations: 63.89 kB / 477.1 MB, free: 11.09 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001418/0.7306, allocations: 31.94 kB / 477.2 MB, free: 11.05 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.914e-05/0.7307, allocations: 4 kB / 477.2 MB, free: 11.05 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.005288/0.736, allocations: 2.021 MB / 479.2 MB, free: 9 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.293e-06/0.736, allocations: 0 / 479.2 MB, free: 9 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001688/0.7377, allocations: 247.5 kB / 479.4 MB, free: 8.758 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (cell.cell.limIntegrator.y,cell.limIntegrator.y,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002827/0.7406, allocations: 1.474 MB / 480.9 MB, free: 7.352 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001122/0.7418, allocations: 353.8 kB / 481.2 MB, free: 6.996 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.7418, allocations: 0 / 481.2 MB, free: 6.996 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005547/0.7424, allocations: 230.4 kB / 481.5 MB, free: 6.762 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001799/0.7442, allocations: 213.7 kB / 481.7 MB, free: 6.551 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00976/0.754, allocations: 2.879 MB / 484.6 MB, free: 3.613 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001635/0.7557, allocations: 1.386 MB / 485.9 MB, free: 2.199 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001215/0.7569, allocations: 253.7 kB / 486.2 MB, free: 1.949 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001633/0.7586, allocations: 0.593 MB / 486.8 MB, free: 1.355 MB / 394.7 MB Notification: Performance of SimCode: time 1.723e-06/0.7586, allocations: 0 / 486.8 MB, free: 1.355 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09264/0.8513, allocations: 31.49 MB / 0.5061 GB, free: 2.051 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002788/0.8516, allocations: 217.5 kB / 0.5063 GB, free: 1.832 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.608/4.459, allocations: 0 / 0.5063 GB, free: 1.832 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat does not exist to compare? outputFormat=mat