Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.905/1.905, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.007e-05/3.01e-05, allocations: 1.562 kB / 292.2 MB, free: 8.746 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1077, allocations: 50.41 MB / 342.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4334/0.5411, allocations: 81.69 MB / 424.3 MB, free: 12.13 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002193/0.5414, allocations: 72.56 kB / 424.4 MB, free: 12.1 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0278/0.5692, allocations: 6.299 MB / 430.7 MB, free: 6.68 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.5693, allocations: 0 / 430.7 MB, free: 6.68 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.4e-05/0.5693, allocations: 8 kB / 430.7 MB, free: 6.672 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.002087/0.5714, allocations: 0.6916 MB / 431.4 MB, free: 5.961 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.594e-05/0.5715, allocations: 8.031 kB / 431.4 MB, free: 5.953 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001394/0.5716, allocations: 72.16 kB / 431.5 MB, free: 5.891 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001328/0.5718, allocations: 43.47 kB / 431.5 MB, free: 5.848 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008454/0.5726, allocations: 355.7 kB / 431.9 MB, free: 5.516 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.341e-05/0.5727, allocations: 26.47 kB / 431.9 MB, free: 5.5 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.321e-05/0.5728, allocations: 30.38 kB / 431.9 MB, free: 5.48 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008349/0.5737, allocations: 326.7 kB / 432.2 MB, free: 5.242 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/0.5737, allocations: 7.891 kB / 432.2 MB, free: 5.234 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.865e-05/0.5738, allocations: 18.61 kB / 432.3 MB, free: 5.227 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.428e-05/0.5738, allocations: 8 kB / 432.3 MB, free: 5.219 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006505/0.5744, allocations: 228.1 kB / 432.5 MB, free: 5.074 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00295/0.5774, allocations: 1.334 MB / 433.8 MB, free: 3.906 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006042/0.5781, allocations: 246.1 kB / 434.1 MB, free: 3.691 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003007/0.5784, allocations: 106.1 kB / 434.2 MB, free: 3.617 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.314e-05/0.5785, allocations: 4 kB / 434.2 MB, free: 3.613 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.5785, allocations: 37.88 kB / 434.2 MB, free: 3.57 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 2.735e-06/0.5785, allocations: 0 / 434.2 MB, free: 3.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.0005451/0.5791, allocations: 160.1 kB / 434.4 MB, free: 3.438 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.7e-05/0.5791, allocations: 59.36 kB / 434.4 MB, free: 3.367 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005167/0.5796, allocations: 289.9 kB / 434.7 MB, free: 3.148 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.631e-05/0.5797, allocations: 28.7 kB / 434.7 MB, free: 3.117 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001804/0.5799, allocations: 265.4 kB / 435 MB, free: 2.891 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.151e-05/0.58, allocations: 54.27 kB / 435 MB, free: 2.844 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.205e-05/0.58, allocations: 7 kB / 435.1 MB, free: 2.84 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.5802, allocations: 318.8 kB / 435.4 MB, free: 2.523 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002123/0.5804, allocations: 68.86 kB / 435.4 MB, free: 2.48 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002652/0.5807, allocations: 130.2 kB / 435.6 MB, free: 2.352 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001773/0.5809, allocations: 62.22 kB / 435.6 MB, free: 2.309 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/0.5809, allocations: 0 / 435.6 MB, free: 2.309 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005702/0.5815, allocations: 223.9 kB / 435.8 MB, free: 2.133 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.598e-05/0.5815, allocations: 8 kB / 435.8 MB, free: 2.125 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.5815, allocations: 0 / 435.8 MB, free: 2.125 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.408e-05/0.5816, allocations: 4 kB / 435.8 MB, free: 2.121 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003671/0.5819, allocations: 51.34 kB / 435.9 MB, free: 2.074 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.443e-05/0.582, allocations: 4 kB / 435.9 MB, free: 2.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007903/0.5828, allocations: 91.91 kB / 436 MB, free: 1.984 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.156e-05/0.5828, allocations: 8 kB / 436 MB, free: 1.977 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.0001352/0.583, allocations: 120.5 kB / 436.1 MB, free: 1.859 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.403e-05/0.5831, allocations: 23.72 kB / 436.1 MB, free: 1.836 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006292/0.5837, allocations: 200.2 kB / 436.3 MB, free: 1.688 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.5837, allocations: 4 kB / 436.3 MB, free: 1.684 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.5837, allocations: 96 / 436.3 MB, free: 1.684 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.5838, allocations: 3.938 kB / 436.3 MB, free: 1.68 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001245/0.585, allocations: 0.6309 MB / 437 MB, free: 1.113 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.585, allocations: 0 / 437 MB, free: 1.113 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003142/0.5854, allocations: 31.92 kB / 437 MB, free: 1.082 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.103e-06/0.5854, allocations: 0 / 437 MB, free: 1.082 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.452e-05/0.5854, allocations: 0 / 437 MB, free: 1.082 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.843e-06/0.5854, allocations: 4 kB / 437 MB, free: 1.078 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.5854, allocations: 7.938 kB / 437 MB, free: 1.07 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000754/0.5862, allocations: 381 kB / 437.4 MB, free: 0.7461 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000135/0.5864, allocations: 112 kB / 437.5 MB, free: 0.625 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.357e-05/0.5864, allocations: 7.984 kB / 437.5 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007763/0.5872, allocations: 82.94 kB / 437.6 MB, free: 0.543 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002905/0.5875, allocations: 71.12 kB / 437.7 MB, free: 488 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.472e-05/0.5876, allocations: 11.61 kB / 437.7 MB, free: 480 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003828/0.588, allocations: 227.5 kB / 437.9 MB, free: 304 kB / 346.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.588, allocations: 0 / 437.9 MB, free: 304 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005671/0.5886, allocations: 87.69 kB / 438 MB, free: 220 kB / 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.001266/0.5899, allocations: 1.002 MB / 439 MB, free: 15.25 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005499/0.5904, allocations: 177.4 kB / 439.2 MB, free: 15.12 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.5904, allocations: 0 / 439.2 MB, free: 15.12 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002935/0.5908, allocations: 103.1 kB / 439.3 MB, free: 15.05 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00056/0.5913, allocations: 53.73 kB / 439.3 MB, free: 15.01 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002342/0.5937, allocations: 0.6506 MB / 440 MB, free: 14.37 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004607/0.5942, allocations: 0.7911 MB / 440.7 MB, free: 13.55 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002821/0.5945, allocations: 103 kB / 440.8 MB, free: 13.52 MB / 362.7 MB Notification: Performance of SimCode: time 1.172e-06/0.5945, allocations: 0 / 440.8 MB, free: 13.52 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.636/3.231, allocations: 5.693 MB / 446.5 MB, free: 7.914 MB / 362.7 MB