Running command: "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Batteries_Examples_SuperCapDischargeCharge",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.955/1.955, allocations: 225.8 MB / 238.8 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.043e-05/3.056e-05, allocations: 9.219 kB / 292.2 MB, free: 8.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1021, allocations: 50.41 MB / 342.6 MB, free: 5.816 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4951/0.5973, allocations: 81.63 MB / 424.3 MB, free: 12.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002655/0.5976, allocations: 70.02 kB / 424.3 MB, free: 12.22 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02907/0.6267, allocations: 6.299 MB / 430.6 MB, free: 6.805 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.6267, allocations: 0 / 430.6 MB, free: 6.805 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.15e-05/0.6268, allocations: 11.98 kB / 430.7 MB, free: 6.793 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.002172/0.629, allocations: 0.6864 MB / 431.3 MB, free: 6.086 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.087e-05/0.6291, allocations: 12.03 kB / 431.4 MB, free: 6.074 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001419/0.6292, allocations: 69.98 kB / 431.4 MB, free: 6.016 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001473/0.6294, allocations: 43.52 kB / 431.5 MB, free: 5.973 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008793/0.6303, allocations: 357.4 kB / 431.8 MB, free: 5.641 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.852e-05/0.6303, allocations: 22.16 kB / 431.8 MB, free: 5.629 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.519e-05/0.6304, allocations: 29.69 kB / 431.9 MB, free: 5.609 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008466/0.6313, allocations: 338 kB / 432.2 MB, free: 5.363 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.787e-05/0.6313, allocations: 3.953 kB / 432.2 MB, free: 5.359 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.944e-05/0.6314, allocations: 14.38 kB / 432.2 MB, free: 5.355 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.6314, allocations: 8 kB / 432.2 MB, free: 5.348 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006465/0.6321, allocations: 220.1 kB / 432.4 MB, free: 5.211 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003026/0.6351, allocations: 1.338 MB / 433.8 MB, free: 4.039 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006028/0.6358, allocations: 259.7 kB / 434 MB, free: 3.812 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003017/0.6361, allocations: 100.6 kB / 434.1 MB, free: 3.742 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.79e-05/0.6361, allocations: 4 kB / 434.1 MB, free: 3.738 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.269e-05/0.6362, allocations: 38.48 kB / 434.2 MB, free: 3.695 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 3.026e-06/0.6362, allocations: 0 / 434.2 MB, free: 3.695 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.0005454/0.6368, allocations: 165.6 kB / 434.3 MB, free: 3.559 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.202e-05/0.6368, allocations: 63.3 kB / 434.4 MB, free: 3.484 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005669/0.6374, allocations: 285.5 kB / 434.7 MB, free: 3.27 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.819e-05/0.6375, allocations: 29.7 kB / 434.7 MB, free: 3.234 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001696/0.6376, allocations: 211.6 kB / 434.9 MB, free: 3.066 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.693e-05/0.6377, allocations: 54.06 kB / 435 MB, free: 3.02 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.442e-05/0.6378, allocations: 7.062 kB / 435 MB, free: 3.016 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.6379, allocations: 333.4 kB / 435.3 MB, free: 2.691 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002179/0.6382, allocations: 72.73 kB / 435.4 MB, free: 2.645 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000271/0.6384, allocations: 126.8 kB / 435.5 MB, free: 2.52 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001913/0.6387, allocations: 64.09 kB / 435.5 MB, free: 2.477 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.01e-05/0.6387, allocations: 4 kB / 435.6 MB, free: 2.473 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006569/0.6393, allocations: 232.5 kB / 435.8 MB, free: 2.289 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.6394, allocations: 4.25 kB / 435.8 MB, free: 2.285 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.6394, allocations: 8 kB / 435.8 MB, free: 2.277 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.318e-05/0.6394, allocations: 4 kB / 435.8 MB, free: 2.273 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003674/0.6398, allocations: 43.91 kB / 435.8 MB, free: 2.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.476e-05/0.6398, allocations: 4 kB / 435.8 MB, free: 2.227 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008043/0.6407, allocations: 91.47 kB / 435.9 MB, free: 2.141 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.512e-05/0.6407, allocations: 11.69 kB / 435.9 MB, free: 2.133 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.0001398/0.6409, allocations: 117.3 kB / 436.1 MB, free: 2.02 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/0.641, allocations: 27.62 kB / 436.1 MB, free: 1.992 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006513/0.6417, allocations: 196.1 kB / 436.3 MB, free: 1.848 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.189e-06/0.6417, allocations: 7.938 kB / 436.3 MB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.6417, allocations: 0 / 436.3 MB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.6417, allocations: 0 / 436.3 MB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001298/0.643, allocations: 0.6243 MB / 436.9 MB, free: 1.277 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.925e-06/0.6431, allocations: 4 kB / 436.9 MB, free: 1.273 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003193/0.6434, allocations: 27.92 kB / 436.9 MB, free: 1.246 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.156e-05/0.6434, allocations: 4 kB / 436.9 MB, free: 1.242 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.885e-05/0.6435, allocations: 6.922 kB / 437 MB, free: 1.238 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.6435, allocations: 4.031 kB / 437 MB, free: 1.234 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/0.6435, allocations: 7.953 kB / 437 MB, free: 1.227 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007928/0.6443, allocations: 375.1 kB / 437.3 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001498/0.6445, allocations: 112.3 kB / 437.4 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.175e-05/0.6446, allocations: 4.094 kB / 437.4 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008383/0.6454, allocations: 95.31 kB / 437.5 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003099/0.6458, allocations: 78.98 kB / 437.6 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.236e-05/0.6458, allocations: 4 kB / 437.6 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004096/0.6462, allocations: 230.4 kB / 437.8 MB, free: 456 kB / 346.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.6462, allocations: 0 / 437.8 MB, free: 456 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006138/0.6469, allocations: 90.36 kB / 437.9 MB, free: 372 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.6481, allocations: 0.9968 MB / 438.9 MB, free: 15.41 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005512/0.6487, allocations: 170.5 kB / 439.1 MB, free: 15.28 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.6487, allocations: 0 / 439.1 MB, free: 15.28 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003457/0.6491, allocations: 103.1 kB / 439.2 MB, free: 15.21 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005882/0.6497, allocations: 59.47 kB / 439.3 MB, free: 15.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002393/0.6521, allocations: 0.6163 MB / 439.9 MB, free: 14.56 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004525/0.6526, allocations: 0.7833 MB / 440.7 MB, free: 13.75 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002866/0.6529, allocations: 30.08 kB / 440.7 MB, free: 13.72 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002725/0.6532, allocations: 105.5 kB / 440.8 MB, free: 13.69 MB / 362.7 MB Notification: Performance of SimCode: time 1.353e-06/0.6532, allocations: 0 / 440.8 MB, free: 13.69 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03547/0.6887, allocations: 6.182 MB / 447 MB, free: 7.617 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003087/0.6891, allocations: 172.7 kB / 447.1 MB, free: 7.391 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.495/3.184, allocations: 0 / 447.1 MB, free: 7.391 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Batteries.Examples.SuperCapDischargeCharge_res.mat does not exist to compare? outputFormat=mat