Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.CCCV_Cell,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_CCCV_Cell",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.01/2.01, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.177e-05/4.184e-05, allocations: 4 kB / 292.7 MB, free: 8.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1129, allocations: 50.41 MB / 343.2 MB, free: 5.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4827/0.5957, allocations: 87.34 MB / 430.5 MB, free: 6.609 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002836/0.596, allocations: 79.48 kB / 430.6 MB, free: 6.57 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1676/0.7637, allocations: 26.84 MB / 457.4 MB, free: 15.23 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.296e-06/0.7638, allocations: 0 / 457.4 MB, free: 15.23 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004572/0.7643, allocations: 27.94 kB / 457.4 MB, free: 15.21 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.007138/0.7714, allocations: 1.47 MB / 458.9 MB, free: 13.78 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.39e-05/0.7715, allocations: 12.03 kB / 458.9 MB, free: 13.77 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004385/0.772, allocations: 96.27 kB / 459 MB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001165/0.7732, allocations: 185.7 kB / 459.2 MB, free: 13.51 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006689/0.7799, allocations: 1.473 MB / 460.7 MB, free: 12.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001308/0.7801, allocations: 64.39 kB / 460.7 MB, free: 12.23 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/0.7803, allocations: 51.53 kB / 460.8 MB, free: 12.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.7817, allocations: 0.5397 MB / 461.3 MB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.575e-05/0.7817, allocations: 3.938 kB / 461.3 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.021e-05/0.7818, allocations: 21.81 kB / 461.4 MB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.634e-05/0.7819, allocations: 12 kB / 461.4 MB, free: 11.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008417/0.7827, allocations: 289 kB / 461.6 MB, free: 11.58 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008765/0.7915, allocations: 3.323 MB / 465 MB, free: 8.469 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/0.7928, allocations: 286.4 kB / 465.3 MB, free: 8.184 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00052/0.7933, allocations: 145.2 kB / 465.4 MB, free: 8.039 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.284e-05/0.7934, allocations: 8.188 kB / 465.4 MB, free: 8.031 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.688e-05/0.7935, allocations: 42.69 kB / 465.4 MB, free: 7.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=21): time 4.087e-06/0.7935, allocations: 0 / 465.4 MB, free: 7.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=21): time 0.001216/0.7947, allocations: 347.2 kB / 465.8 MB, free: 7.633 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001768/0.7949, allocations: 217.5 kB / 466 MB, free: 7.371 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007709/0.8027, allocations: 2.61 MB / 468.6 MB, free: 4.715 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001257/0.8028, allocations: 33.64 kB / 468.6 MB, free: 4.676 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001307/0.8042, allocations: 0.7815 MB / 469.4 MB, free: 3.887 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001549/0.8044, allocations: 78.91 kB / 469.5 MB, free: 3.809 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.825e-05/0.8044, allocations: 8 kB / 469.5 MB, free: 3.801 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.8046, allocations: 325.9 kB / 469.8 MB, free: 3.477 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002777/0.8049, allocations: 80.66 kB / 469.9 MB, free: 3.395 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004345/0.8053, allocations: 244.7 kB / 470.1 MB, free: 3.086 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000317/0.8056, allocations: 115.9 kB / 470.3 MB, free: 2.977 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.8057, allocations: 0 / 470.3 MB, free: 2.977 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.002083/0.8078, allocations: 0.5119 MB / 470.8 MB, free: 2.453 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.9e-05/0.8078, allocations: 12.19 kB / 470.8 MB, free: 2.441 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.602e-05/0.8079, allocations: 4 kB / 470.8 MB, free: 2.438 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003271/0.8082, allocations: 48.78 kB / 470.8 MB, free: 2.387 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006124/0.8088, allocations: 75.91 kB / 470.9 MB, free: 2.312 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002159/0.811, allocations: 1.538 MB / 472.4 MB, free: 0.6406 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001134/0.8122, allocations: 71.78 kB / 472.5 MB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.054e-05/0.8123, allocations: 16 kB / 472.5 MB, free: 0.5547 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.0001861/0.8125, allocations: 133 kB / 472.7 MB, free: 428 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004474/0.8129, allocations: 169.8 kB / 472.8 MB, free: 256 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001274/0.8142, allocations: 404.9 kB / 473.2 MB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.321e-05/0.8143, allocations: 4 kB / 473.2 MB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.8143, allocations: 0 / 473.2 MB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.682e-06/0.8143, allocations: 0 / 473.2 MB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004322/0.8186, allocations: 1.684 MB / 474.9 MB, free: 14.08 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.8187, allocations: 4 kB / 474.9 MB, free: 14.08 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005621/0.8193, allocations: 51.91 kB / 475 MB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002196/0.8195, allocations: 44.86 kB / 475 MB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.062e-05/0.8195, allocations: 4 kB / 475 MB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001879/0.8214, allocations: 1.475 MB / 476.5 MB, free: 12.37 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.8215, allocations: 0 / 476.5 MB, free: 12.37 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001419/0.8229, allocations: 0.5733 MB / 477.1 MB, free: 11.76 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001238/0.8242, allocations: 0.5038 MB / 477.6 MB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002638/0.8245, allocations: 4 kB / 477.6 MB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000894/0.8254, allocations: 63.89 kB / 477.6 MB, free: 11.15 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001479/0.8255, allocations: 31.94 kB / 477.7 MB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-05/0.8256, allocations: 12.19 kB / 477.7 MB, free: 11.11 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.005595/0.8312, allocations: 2.017 MB / 479.7 MB, free: 9.059 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.182e-06/0.8312, allocations: 3.938 kB / 479.7 MB, free: 9.055 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001691/0.8329, allocations: 247.5 kB / 479.9 MB, free: 8.812 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.003091/0.8361, allocations: 1.49 MB / 481.4 MB, free: 7.391 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001102/0.8372, allocations: 345.7 kB / 481.8 MB, free: 7.043 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.8373, allocations: 0 / 481.8 MB, free: 7.043 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005711/0.8378, allocations: 226.6 kB / 482 MB, free: 6.812 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001957/0.8398, allocations: 202.7 kB / 482.2 MB, free: 6.609 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01045/0.8503, allocations: 2.883 MB / 485.1 MB, free: 3.668 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001855/0.8522, allocations: 1.386 MB / 486.4 MB, free: 2.254 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001186/0.8535, allocations: 253.7 kB / 486.7 MB, free: 2.004 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001575/0.8551, allocations: 0.5891 MB / 487.3 MB, free: 1.414 MB / 394.7 MB Notification: Performance of SimCode: time 1.623e-06/0.8551, allocations: 0 / 487.3 MB, free: 1.414 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0953/0.9504, allocations: 31.5 MB / 0.5066 GB, free: 2.102 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003643/0.9508, allocations: 220.5 kB / 0.5068 GB, free: 1.883 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.829/4.78, allocations: 0 / 0.5068 GB, free: 1.883 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Batteries.Examples.CCCV_Cell_res.mat does not exist to compare? outputFormat=mat