Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.001/2.001, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.229e-05/3.269e-05, allocations: 5.562 kB / 292.7 MB, free: 8.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1104, allocations: 50.4 MB / 343.1 MB, free: 5.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.455/0.5654, allocations: 81.62 MB / 424.8 MB, free: 12.62 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002603/0.5657, allocations: 72.45 kB / 424.8 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0274/0.5931, allocations: 6.309 MB / 431.1 MB, free: 7.16 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.5932, allocations: 0 / 431.1 MB, free: 7.16 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.081e-05/0.5932, allocations: 8 kB / 431.2 MB, free: 7.152 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 77 * Number of variables: 77 Notification: Performance of Generate backend data structure: time 0.001974/0.5952, allocations: 0.6924 MB / 431.8 MB, free: 6.441 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.5953, allocations: 8.031 kB / 431.9 MB, free: 6.434 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001114/0.5954, allocations: 77.22 kB / 431.9 MB, free: 6.367 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000118/0.5955, allocations: 39.53 kB / 432 MB, free: 6.328 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008319/0.5964, allocations: 355.3 kB / 432.3 MB, free: 5.996 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.055e-05/0.5964, allocations: 22.41 kB / 432.3 MB, free: 5.984 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.029e-05/0.5965, allocations: 31 kB / 432.4 MB, free: 5.961 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008127/0.5973, allocations: 336.5 kB / 432.7 MB, free: 5.715 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.5974, allocations: 3.953 kB / 432.7 MB, free: 5.711 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.199e-05/0.5974, allocations: 14.31 kB / 432.7 MB, free: 5.707 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.5975, allocations: 8 kB / 432.7 MB, free: 5.699 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006448/0.5981, allocations: 222.2 kB / 432.9 MB, free: 5.559 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002801/0.6009, allocations: 1.33 MB / 434.3 MB, free: 4.395 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005916/0.6015, allocations: 256.3 kB / 434.5 MB, free: 4.172 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003097/0.6019, allocations: 103.7 kB / 434.6 MB, free: 4.102 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.049e-05/0.6019, allocations: 3.984 kB / 434.6 MB, free: 4.098 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.967e-05/0.602, allocations: 34.56 kB / 434.7 MB, free: 4.055 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 3.256e-06/0.602, allocations: 0 / 434.7 MB, free: 4.055 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.0004949/0.6025, allocations: 165.4 kB / 434.8 MB, free: 3.918 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.674e-05/0.6025, allocations: 59.36 kB / 434.9 MB, free: 3.848 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005082/0.6031, allocations: 290.3 kB / 435.2 MB, free: 3.629 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.752e-05/0.6031, allocations: 25.7 kB / 435.2 MB, free: 3.598 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001801/0.6033, allocations: 216 kB / 435.4 MB, free: 3.426 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.916e-05/0.6034, allocations: 53.64 kB / 435.4 MB, free: 3.379 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.071e-05/0.6034, allocations: 3.188 kB / 435.5 MB, free: 3.379 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.6036, allocations: 336.7 kB / 435.8 MB, free: 3.051 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002173/0.6038, allocations: 73.8 kB / 435.9 MB, free: 3.004 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000272/0.6041, allocations: 127.1 kB / 436 MB, free: 2.879 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001769/0.6043, allocations: 58.17 kB / 436 MB, free: 2.84 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-05/0.6043, allocations: 0 / 436 MB, free: 2.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005824/0.6049, allocations: 235.2 kB / 436.3 MB, free: 2.652 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.605, allocations: 8.25 kB / 436.3 MB, free: 2.645 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.605, allocations: 4 kB / 436.3 MB, free: 2.641 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.894e-05/0.605, allocations: 4 kB / 436.3 MB, free: 2.637 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003437/0.6054, allocations: 50.91 kB / 436.3 MB, free: 2.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.6054, allocations: 4.094 kB / 436.3 MB, free: 2.586 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007247/0.6061, allocations: 93.53 kB / 436.4 MB, free: 2.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.249e-05/0.6062, allocations: 8 kB / 436.4 MB, free: 2.492 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (pulseSeries.on1,pulseSeries.on2,energy.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001147/0.6063, allocations: 114.9 kB / 436.5 MB, free: 2.379 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.099e-05/0.6064, allocations: 31.62 kB / 436.6 MB, free: 2.348 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005846/0.607, allocations: 197 kB / 436.8 MB, free: 2.203 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.607, allocations: 7.984 kB / 436.8 MB, free: 2.195 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.607, allocations: 0 / 436.8 MB, free: 2.195 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.6071, allocations: 0 / 436.8 MB, free: 2.195 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00122/0.6083, allocations: 0.6289 MB / 437.4 MB, free: 1.629 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.6083, allocations: 0 / 437.4 MB, free: 1.629 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002982/0.6086, allocations: 35.91 kB / 437.4 MB, free: 1.594 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.6086, allocations: 0 / 437.4 MB, free: 1.594 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.937e-05/0.6087, allocations: 11.88 kB / 437.5 MB, free: 1.586 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.6087, allocations: 4.031 kB / 437.5 MB, free: 1.582 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.137e-06/0.6087, allocations: 3.953 kB / 437.5 MB, free: 1.578 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007467/0.6094, allocations: 381.7 kB / 437.8 MB, free: 1.254 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.6096, allocations: 104.2 kB / 437.9 MB, free: 1.137 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.663e-05/0.6097, allocations: 7.125 kB / 437.9 MB, free: 1.133 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007638/0.6104, allocations: 86.94 kB / 438 MB, free: 1.051 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003007/0.6108, allocations: 78.42 kB / 438.1 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.793e-05/0.6108, allocations: 4 kB / 438.1 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003651/0.6112, allocations: 230.3 kB / 438.3 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6112, allocations: 0 / 438.3 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005312/0.6117, allocations: 91.55 kB / 438.4 MB, free: 0.7188 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (superCap.capacitor.v,energy.y) * Number of discrete variables: 2 (pulseSeries.on1,pulseSeries.on2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001218/0.613, allocations: 0.9929 MB / 439.4 MB, free: 15.77 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005101/0.6135, allocations: 176.9 kB / 439.6 MB, free: 15.64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.6135, allocations: 0 / 439.6 MB, free: 15.64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002998/0.6138, allocations: 109.3 kB / 439.7 MB, free: 15.56 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004886/0.6143, allocations: 46.62 kB / 439.7 MB, free: 15.53 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002169/0.6165, allocations: 0.6204 MB / 440.4 MB, free: 14.91 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005006/0.617, allocations: 0.7862 MB / 441.1 MB, free: 14.11 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000243/0.6173, allocations: 38.05 kB / 441.2 MB, free: 14.07 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002371/0.6175, allocations: 101.2 kB / 441.3 MB, free: 14.04 MB / 362.7 MB Notification: Performance of SimCode: time 7.52e-07/0.6175, allocations: 0 / 441.3 MB, free: 14.04 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02978/0.6473, allocations: 6.178 MB / 447.5 MB, free: 7.973 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003533/0.6478, allocations: 169.7 kB / 447.6 MB, free: 7.746 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.746/3.394, allocations: 0 / 447.6 MB, free: 7.746 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat does not exist to compare? outputFormat=mat