Running command: "" <> buildModelFMU(HanserModelica.Electrical.TestBrush,fileNamePrefix="HanserModelica_HanserModelica_Electrical_TestBrush",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(HanserModelica): time 2.283/2.283, allocations: 214.7 MB / 226.8 MB, free: 1.312 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.77e-05/4.781e-05, allocations: 4 kB / 279.6 MB, free: 13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1104, allocations: 49.7 MB / 329.3 MB, free: 11.2 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4461/0.5566, allocations: 78.03 MB / 407.3 MB, free: 5.746 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002378/0.5569, allocations: 66.97 kB / 407.4 MB, free: 5.715 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01123/0.5682, allocations: 1.78 MB / 409.1 MB, free: 4.16 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.5682, allocations: 0 / 409.1 MB, free: 4.16 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.663e-05/0.5683, allocations: 4 kB / 409.1 MB, free: 4.156 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.00091/0.5692, allocations: 379.3 kB / 409.5 MB, free: 3.75 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 9.148e-05/0.5693, allocations: 8.031 kB / 409.5 MB, free: 3.742 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.281e-05/0.5694, allocations: 38.06 kB / 409.6 MB, free: 3.699 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.457e-05/0.5695, allocations: 7.906 kB / 409.6 MB, free: 3.691 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000253/0.5698, allocations: 179.1 kB / 409.7 MB, free: 3.477 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.096e-05/0.5698, allocations: 7.75 kB / 409.8 MB, free: 3.473 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.547e-05/0.5699, allocations: 7.953 kB / 409.8 MB, free: 3.465 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002601/0.5701, allocations: 72.3 kB / 409.8 MB, free: 3.406 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.5702, allocations: 3.938 kB / 409.8 MB, free: 3.402 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.041e-05/0.5702, allocations: 4 kB / 409.8 MB, free: 3.398 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.5702, allocations: 0 / 409.8 MB, free: 3.398 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002067/0.5705, allocations: 55.09 kB / 409.9 MB, free: 3.359 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001112/0.5716, allocations: 403.5 kB / 410.3 MB, free: 2.953 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001142/0.5717, allocations: 21.83 kB / 410.3 MB, free: 2.926 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.327e-05/0.5718, allocations: 16.05 kB / 410.3 MB, free: 2.91 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.218e-05/0.5719, allocations: 3.984 kB / 410.3 MB, free: 2.906 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.659e-05/0.5719, allocations: 34.56 kB / 410.4 MB, free: 2.863 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 3.737e-06/0.572, allocations: 0 / 410.4 MB, free: 2.863 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002728/0.5722, allocations: 53.12 kB / 410.4 MB, free: 2.812 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.297e-05/0.5723, allocations: 51.41 kB / 410.5 MB, free: 2.75 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001784/0.5725, allocations: 118 kB / 410.6 MB, free: 2.637 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.231e-05/0.5726, allocations: 29.64 kB / 410.6 MB, free: 2.602 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.582e-05/0.5727, allocations: 102.9 kB / 410.7 MB, free: 2.5 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.49e-05/0.5727, allocations: 15.16 kB / 410.7 MB, free: 2.488 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.464e-06/0.5727, allocations: 4.031 kB / 410.7 MB, free: 2.484 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.5729, allocations: 314.3 kB / 411 MB, free: 2.172 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.479e-05/0.573, allocations: 7 kB / 411 MB, free: 2.168 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.315e-05/0.5731, allocations: 29.75 kB / 411.1 MB, free: 2.133 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.169e-05/0.5732, allocations: 7.938 kB / 411.1 MB, free: 2.129 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.636e-06/0.5732, allocations: 8 kB / 411.1 MB, free: 2.121 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.00024/0.5735, allocations: 60.22 kB / 411.1 MB, free: 2.062 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.483e-05/0.5735, allocations: 11.94 kB / 411.2 MB, free: 2.051 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.5735, allocations: 0 / 411.2 MB, free: 2.051 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.5736, allocations: 0 / 411.2 MB, free: 2.051 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002395/0.5738, allocations: 15.98 kB / 411.2 MB, free: 2.035 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.296e-05/0.5739, allocations: 7.953 kB / 411.2 MB, free: 2.027 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001714/0.5741, allocations: 8.094 kB / 411.2 MB, free: 2.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.404e-05/0.5741, allocations: 11.98 kB / 411.2 MB, free: 2.008 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.0001093/0.5742, allocations: 104 kB / 411.3 MB, free: 1.902 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.179e-05/0.5743, allocations: 4 kB / 411.3 MB, free: 1.898 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.117e-05/0.5744, allocations: 10.73 kB / 411.3 MB, free: 1.895 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.935e-06/0.5744, allocations: 0 / 411.3 MB, free: 1.895 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.5744, allocations: 3.938 kB / 411.3 MB, free: 1.891 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.389e-05/0.5745, allocations: 7.953 kB / 411.3 MB, free: 1.883 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003534/0.5748, allocations: 176 kB / 411.5 MB, free: 1.672 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.5749, allocations: 4 kB / 411.5 MB, free: 1.668 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001595/0.575, allocations: 11.98 kB / 411.5 MB, free: 1.656 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.5751, allocations: 0 / 411.5 MB, free: 1.656 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.5751, allocations: 4 kB / 411.5 MB, free: 1.652 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.5751, allocations: 0 / 411.5 MB, free: 1.652 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.5751, allocations: 3.938 kB / 411.5 MB, free: 1.648 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000253/0.5754, allocations: 152.9 kB / 411.7 MB, free: 1.492 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.233e-05/0.5755, allocations: 85.02 kB / 411.8 MB, free: 1.391 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.905e-05/0.5755, allocations: 0 / 411.8 MB, free: 1.391 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002179/0.5758, allocations: 7.984 kB / 411.8 MB, free: 1.383 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.127e-05/0.5759, allocations: 4 kB / 411.8 MB, free: 1.379 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.398e-06/0.5759, allocations: 0 / 411.8 MB, free: 1.379 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000117/0.576, allocations: 98.08 kB / 411.9 MB, free: 1.289 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.92e-07/0.576, allocations: 0 / 411.9 MB, free: 1.289 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005361/0.5766, allocations: 15.94 kB / 411.9 MB, free: 1.273 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0007852/0.5774, allocations: 0.6982 MB / 412.6 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001928/0.5776, allocations: 18.88 kB / 412.6 MB, free: 0.543 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.5777, allocations: 0 / 412.6 MB, free: 0.543 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.467e-05/0.5777, allocations: 15.41 kB / 412.6 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004148/0.5782, allocations: 15.94 kB / 412.6 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000788/0.579, allocations: 125.7 kB / 412.7 MB, free: 376 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000423/0.5794, allocations: 0.6887 MB / 413.4 MB, free: 15.65 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.406e-05/0.5796, allocations: 11.98 kB / 413.4 MB, free: 15.64 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.747e-05/0.5797, allocations: 20.62 kB / 413.5 MB, free: 15.63 MB / 346.7 MB Notification: Performance of SimCode: time 2.564e-06/0.5797, allocations: 4 kB / 413.5 MB, free: 15.62 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02247/0.6022, allocations: 1.474 MB / 414.9 MB, free: 14.21 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003287/0.6026, allocations: 131.4 kB / 415.1 MB, free: 13.99 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.366/2.969, allocations: 4 kB / 415.1 MB, free: 13.98 MB / 346.7 MB