Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCVcharging,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_CCCVcharging",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.925/1.925, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.642e-05/3.66e-05, allocations: 4 kB / 292.2 MB, free: 8.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1079, allocations: 50.4 MB / 342.6 MB, free: 5.797 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4709/0.5788, allocations: 87.93 MB / 430.6 MB, free: 5.941 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002384/0.5791, allocations: 74.34 kB / 430.6 MB, free: 5.906 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1181/0.6973, allocations: 29.49 MB / 460.1 MB, free: 12.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.6973, allocations: 3.938 kB / 460.1 MB, free: 12.04 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001341/0.6975, allocations: 24 kB / 460.2 MB, free: 12.01 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.002978/0.7004, allocations: 1.308 MB / 461.5 MB, free: 10.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.169e-05/0.7005, allocations: 8.031 kB / 461.5 MB, free: 10.73 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001542/0.7007, allocations: 96.02 kB / 461.6 MB, free: 10.65 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004098/0.7011, allocations: 154.1 kB / 461.7 MB, free: 10.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003152/0.7043, allocations: 1.156 MB / 462.9 MB, free: 9.492 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001056/0.7044, allocations: 63.45 kB / 462.9 MB, free: 9.438 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001194/0.7045, allocations: 50.47 kB / 463 MB, free: 9.402 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/0.706, allocations: 0.605 MB / 463.6 MB, free: 8.938 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.216e-05/0.706, allocations: 7.938 kB / 463.6 MB, free: 8.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.348e-05/0.7061, allocations: 24.94 kB / 463.6 MB, free: 8.922 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.006e-05/0.7061, allocations: 15.98 kB / 463.6 MB, free: 8.906 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009939/0.7072, allocations: 376.7 kB / 464 MB, free: 8.672 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007287/0.7145, allocations: 2.919 MB / 466.9 MB, free: 5.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001373/0.7159, allocations: 382.7 kB / 467.3 MB, free: 5.457 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008446/0.7168, allocations: 288.8 kB / 467.6 MB, free: 5.172 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.168e-05/0.7168, allocations: 4 kB / 467.6 MB, free: 5.168 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.964e-05/0.7169, allocations: 46.44 kB / 467.6 MB, free: 5.113 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 2.966e-06/0.7169, allocations: 0 / 467.6 MB, free: 5.113 MB / 378.7 MB Notification: Performance of matching and sorting (n=30): time 0.001739/0.7186, allocations: 477.2 kB / 468.1 MB, free: 4.637 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001366/0.7188, allocations: 265 kB / 468.4 MB, free: 4.316 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005338/0.7241, allocations: 2.007 MB / 470.4 MB, free: 2.301 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001279/0.7243, allocations: 33.7 kB / 470.4 MB, free: 2.262 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009132/0.7253, allocations: 0.6389 MB / 471 MB, free: 1.617 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001784/0.7255, allocations: 106.5 kB / 471.1 MB, free: 1.512 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.771e-05/0.7255, allocations: 8 kB / 471.1 MB, free: 1.504 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.7257, allocations: 326 kB / 471.5 MB, free: 1.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003909/0.7261, allocations: 132.7 kB / 471.6 MB, free: 1.047 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005172/0.7266, allocations: 272.2 kB / 471.9 MB, free: 0.7266 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004364/0.7271, allocations: 170 kB / 472 MB, free: 0.5625 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.7271, allocations: 0 / 472 MB, free: 0.5625 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001651/0.7287, allocations: 0.5391 MB / 472.6 MB, free: 12 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.7288, allocations: 8 kB / 472.6 MB, free: 4 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.7288, allocations: 4 kB / 472.6 MB, free: 0 / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003768/0.7292, allocations: 56.91 kB / 472.6 MB, free: 15.94 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000729/0.73, allocations: 87.88 kB / 472.7 MB, free: 15.85 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002169/0.7321, allocations: 1.576 MB / 474.3 MB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/0.7332, allocations: 71.58 kB / 474.4 MB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.709e-05/0.7333, allocations: 15.94 kB / 474.4 MB, free: 14.06 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.0001904/0.7335, allocations: 124.9 kB / 474.5 MB, free: 13.93 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003173/0.7338, allocations: 142.4 kB / 474.6 MB, free: 13.79 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00178/0.7356, allocations: 0.5162 MB / 475.2 MB, free: 13.26 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.718e-06/0.7356, allocations: 4 kB / 475.2 MB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.7356, allocations: 0 / 475.2 MB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.836e-06/0.7357, allocations: 3.984 kB / 475.2 MB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004792/0.7405, allocations: 1.677 MB / 476.8 MB, free: 11.51 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.405e-05/0.7405, allocations: 4.062 kB / 476.8 MB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006919/0.7412, allocations: 71.95 kB / 476.9 MB, free: 11.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002952/0.7416, allocations: 48.78 kB / 477 MB, free: 11.38 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.177e-05/0.7416, allocations: 11.98 kB / 477 MB, free: 11.37 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00202/0.7437, allocations: 1.533 MB / 478.5 MB, free: 9.703 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.7437, allocations: 128 / 478.5 MB, free: 9.703 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002048/0.7458, allocations: 0.7638 MB / 479.3 MB, free: 8.895 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001109/0.7469, allocations: 456.3 kB / 479.7 MB, free: 8.41 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000216/0.7472, allocations: 8 kB / 479.7 MB, free: 8.402 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009199/0.7481, allocations: 63.91 kB / 479.8 MB, free: 8.34 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/0.7483, allocations: 31.89 kB / 479.8 MB, free: 8.309 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.595e-05/0.7483, allocations: 16 kB / 479.8 MB, free: 8.293 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003818/0.7521, allocations: 1.552 MB / 481.4 MB, free: 6.742 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.143e-06/0.7522, allocations: 0 / 481.4 MB, free: 6.742 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001547/0.7537, allocations: 243.6 kB / 481.6 MB, free: 6.504 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.003628/0.7574, allocations: 1.767 MB / 483.4 MB, free: 4.797 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001307/0.7588, allocations: 449.9 kB / 483.8 MB, free: 4.348 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.7588, allocations: 0 / 483.8 MB, free: 4.348 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006503/0.7595, allocations: 285.5 kB / 484.1 MB, free: 4.062 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001617/0.7611, allocations: 193.1 kB / 484.3 MB, free: 3.871 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007315/0.7684, allocations: 2.469 MB / 486.8 MB, free: 1.355 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001343/0.7698, allocations: 1.288 MB / 488.1 MB, free: 44 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001041/0.7709, allocations: 231.8 kB / 488.3 MB, free: 15.81 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001081/0.772, allocations: 479.3 kB / 488.7 MB, free: 15.34 MB / 410.7 MB Notification: Performance of SimCode: time 1.593e-06/0.772, allocations: 3.938 kB / 488.8 MB, free: 15.34 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08511/0.8571, allocations: 27.52 MB / 0.5042 GB, free: 4.004 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003246/0.8575, allocations: 228.1 kB / 0.5044 GB, free: 3.773 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.367/4.225, allocations: 0 / 0.5044 GB, free: 3.773 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.CCCVcharging_res.mat does not exist to compare? outputFormat=mat