Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.068/2.068, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.948e-05/3.954e-05, allocations: 4 kB / 292.7 MB, free: 8.246 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1126, allocations: 50.41 MB / 343.2 MB, free: 5.816 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4566/0.5692, allocations: 87.92 MB / 431.1 MB, free: 6.016 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002417/0.5695, allocations: 74.53 kB / 431.2 MB, free: 5.98 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1692/0.7387, allocations: 29.47 MB / 460.6 MB, free: 12.12 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.208e-06/0.7387, allocations: 4 kB / 460.6 MB, free: 12.12 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001539/0.7389, allocations: 31.92 kB / 460.7 MB, free: 12.09 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: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.003366/0.7423, allocations: 1.307 MB / 462 MB, free: 10.81 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.392e-05/0.7424, allocations: 12.03 kB / 462 MB, free: 10.8 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002123/0.7426, allocations: 92.06 kB / 462.1 MB, free: 10.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004725/0.7431, allocations: 154.1 kB / 462.2 MB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003475/0.7466, allocations: 1.156 MB / 463.4 MB, free: 9.566 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001138/0.7467, allocations: 62.83 kB / 463.4 MB, free: 9.512 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.7469, allocations: 51.78 kB / 463.5 MB, free: 9.477 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001514/0.7484, allocations: 0.614 MB / 464.1 MB, free: 9.004 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.17e-05/0.7484, allocations: 0 / 464.1 MB, free: 9.004 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.695e-05/0.7485, allocations: 26.06 kB / 464.1 MB, free: 8.992 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.035e-05/0.7486, allocations: 12 kB / 464.1 MB, free: 8.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001018/0.7496, allocations: 377 kB / 464.5 MB, free: 8.746 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007427/0.757, allocations: 2.915 MB / 467.4 MB, free: 5.906 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001371/0.7585, allocations: 386.7 kB / 467.8 MB, free: 5.52 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008532/0.7593, allocations: 296.4 kB / 468.1 MB, free: 5.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.128e-05/0.7594, allocations: 4 kB / 468.1 MB, free: 5.227 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.619e-05/0.7595, allocations: 34.56 kB / 468.1 MB, free: 5.184 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 2.926e-06/0.7595, allocations: 7.938 kB / 468.1 MB, free: 5.176 MB / 378.7 MB Notification: Performance of matching and sorting (n=30): time 0.001747/0.7612, allocations: 477.1 kB / 468.6 MB, free: 4.699 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001523/0.7614, allocations: 265 kB / 468.9 MB, free: 4.379 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005182/0.7666, allocations: 2.003 MB / 470.9 MB, free: 2.367 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000123/0.7668, allocations: 33.7 kB / 470.9 MB, free: 2.328 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008814/0.7677, allocations: 0.6428 MB / 471.5 MB, free: 1.68 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001842/0.7679, allocations: 110.4 kB / 471.6 MB, free: 1.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.65e-05/0.7679, allocations: 12 kB / 471.7 MB, free: 1.559 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.7681, allocations: 318 kB / 472 MB, free: 1.242 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003814/0.7685, allocations: 136.7 kB / 472.1 MB, free: 1.105 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005075/0.769, allocations: 264.3 kB / 472.4 MB, free: 0.793 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004348/0.7695, allocations: 170 kB / 472.5 MB, free: 0.6289 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/0.7695, allocations: 0 / 472.5 MB, free: 0.6289 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001575/0.7711, allocations: 0.5474 MB / 473.1 MB, free: 72 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.7711, allocations: 7.984 kB / 473.1 MB, free: 64 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.7711, allocations: 4 kB / 473.1 MB, free: 60 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003327/0.7715, allocations: 48.84 kB / 473.1 MB, free: 8 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007629/0.7722, allocations: 100 kB / 473.2 MB, free: 15.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00217/0.7744, allocations: 1.576 MB / 474.8 MB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001031/0.7755, allocations: 59.56 kB / 474.9 MB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.476e-05/0.7756, allocations: 12 kB / 474.9 MB, free: 14.12 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 3 (cccvCharger.CV,energy.local_reset,battery.limIntegrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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 5} Notification: Performance of prepare postOptimizeDAE: time 0.0001895/0.7758, allocations: 129 kB / 475 MB, free: 13.99 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000348/0.7761, allocations: 146.3 kB / 475.1 MB, free: 13.85 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001755/0.7779, allocations: 0.5118 MB / 475.7 MB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.778, allocations: 4 kB / 475.7 MB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.778, allocations: 0 / 475.7 MB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.778, allocations: 0 / 475.7 MB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004753/0.7828, allocations: 1.688 MB / 477.3 MB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.071e-06/0.7828, allocations: 0 / 477.3 MB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006551/0.7835, allocations: 67.89 kB / 477.4 MB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002714/0.7838, allocations: 48.83 kB / 477.5 MB, free: 11.45 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.074e-05/0.7838, allocations: 12.12 kB / 477.5 MB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002029/0.7859, allocations: 1.537 MB / 479 MB, free: 9.762 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.64e-06/0.7859, allocations: 7.766 kB / 479 MB, free: 9.758 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002123/0.788, allocations: 0.756 MB / 479.8 MB, free: 8.957 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001132/0.7892, allocations: 456.3 kB / 480.2 MB, free: 8.473 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002238/0.7895, allocations: 12 kB / 480.2 MB, free: 8.461 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009081/0.7904, allocations: 63.91 kB / 480.3 MB, free: 8.398 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/0.7905, allocations: 31.95 kB / 480.3 MB, free: 8.367 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.536e-05/0.7906, allocations: 8 kB / 480.3 MB, free: 8.359 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003851/0.7944, allocations: 1.552 MB / 481.9 MB, free: 6.809 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.232e-06/0.7945, allocations: 0 / 481.9 MB, free: 6.809 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001578/0.7961, allocations: 247.6 kB / 482.1 MB, free: 6.566 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (battery.limIntegrator.y,battery.capacitor[1].v,battery.capacitor[2].v,energy.y) * Number of discrete variables: 1 (cccvCharger.CV) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 25 * 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 Backend phase and start with SimCode phase: time 0.003682/0.7998, allocations: 1.771 MB / 483.9 MB, free: 4.852 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001327/0.8012, allocations: 449.9 kB / 484.3 MB, free: 4.402 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.83e-06/0.8012, allocations: 0 / 484.3 MB, free: 4.402 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006829/0.8019, allocations: 289.5 kB / 484.6 MB, free: 4.113 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001686/0.8036, allocations: 193.1 kB / 484.8 MB, free: 3.922 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007697/0.8113, allocations: 2.473 MB / 487.3 MB, free: 1.402 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001434/0.8128, allocations: 1.284 MB / 488.6 MB, free: 96 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001068/0.8139, allocations: 223.9 kB / 488.8 MB, free: 15.87 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001169/0.8151, allocations: 483.2 kB / 489.3 MB, free: 15.4 MB / 410.7 MB Notification: Performance of SimCode: time 1.794e-06/0.8152, allocations: 0 / 489.3 MB, free: 15.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1089/0.9241, allocations: 27.53 MB / 0.5047 GB, free: 4.059 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003437/0.9245, allocations: 228.1 kB / 0.5049 GB, free: 3.828 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.647/4.572, allocations: 3.938 kB / 0.5049 GB, free: 3.824 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat does not exist to compare? outputFormat=mat