Running command: "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical3,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(HanserModelica): time 2.307/2.307, allocations: 214.7 MB / 226.9 MB, free: 1.297 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.693e-05/4.705e-05, allocations: 4 kB / 279.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1141, allocations: 49.7 MB / 329.3 MB, free: 11.18 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4416/0.5558, allocations: 75.91 MB / 405.2 MB, free: 7.527 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003513/0.5562, allocations: 60.03 kB / 405.2 MB, free: 7.496 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002131/0.5584, allocations: 0.5008 MB / 405.7 MB, free: 7.035 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.5584, allocations: 4 kB / 405.7 MB, free: 7.031 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.328e-05/0.5585, allocations: 4 kB / 405.7 MB, free: 7.027 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004524/0.5589, allocations: 313.6 kB / 406 MB, free: 6.68 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.692e-05/0.559, allocations: 19.95 kB / 406.1 MB, free: 6.66 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.701e-05/0.5591, allocations: 30.56 kB / 406.1 MB, free: 6.621 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.439e-05/0.5592, allocations: 3.906 kB / 406.1 MB, free: 6.617 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001865/0.5594, allocations: 163.1 kB / 406.3 MB, free: 6.418 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.682e-05/0.5594, allocations: 0 / 406.3 MB, free: 6.418 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.29e-05/0.5595, allocations: 3.953 kB / 406.3 MB, free: 6.414 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001477/0.5596, allocations: 41.56 kB / 406.3 MB, free: 6.371 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.5597, allocations: 0 / 406.3 MB, free: 6.371 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.458e-05/0.5597, allocations: 0 / 406.3 MB, free: 6.371 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.241e-05/0.5597, allocations: 4 kB / 406.3 MB, free: 6.367 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.053e-05/0.5598, allocations: 7.938 kB / 406.3 MB, free: 6.359 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003184/0.5601, allocations: 155.5 kB / 406.5 MB, free: 6.164 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001468/0.5603, allocations: 29.83 kB / 406.5 MB, free: 6.129 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.901e-05/0.5604, allocations: 15.98 kB / 406.5 MB, free: 6.113 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.191e-05/0.5605, allocations: 4 kB / 406.5 MB, free: 6.109 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.158e-05/0.5605, allocations: 35.17 kB / 406.6 MB, free: 6.066 MB / 330.7 MB Notification: Performance of pre-optimization done (n=3): time 3.617e-06/0.5606, allocations: 0 / 406.6 MB, free: 6.066 MB / 330.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002684/0.5609, allocations: 44.78 kB / 406.6 MB, free: 6.02 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.65e-05/0.561, allocations: 55.41 kB / 406.6 MB, free: 5.953 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001426/0.5611, allocations: 91.48 kB / 406.7 MB, free: 5.859 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.47e-05/0.5612, allocations: 29.7 kB / 406.8 MB, free: 5.824 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.12e-05/0.5613, allocations: 86.44 kB / 406.9 MB, free: 5.738 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.778e-05/0.5613, allocations: 14.75 kB / 406.9 MB, free: 5.727 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.22e-06/0.5614, allocations: 0 / 406.9 MB, free: 5.727 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.5616, allocations: 313.8 kB / 407.2 MB, free: 5.414 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.063e-05/0.5616, allocations: 4 kB / 407.2 MB, free: 5.41 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.269e-05/0.5617, allocations: 4 kB / 407.2 MB, free: 5.406 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.651e-05/0.5617, allocations: 11.56 kB / 407.2 MB, free: 5.398 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.5618, allocations: 0 / 407.2 MB, free: 5.398 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001648/0.5619, allocations: 44.62 kB / 407.2 MB, free: 5.352 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/0.562, allocations: 8 kB / 407.2 MB, free: 5.344 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.562, allocations: 7.938 kB / 407.3 MB, free: 5.336 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.562, allocations: 3.984 kB / 407.3 MB, free: 5.332 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001911/0.5622, allocations: 11.94 kB / 407.3 MB, free: 5.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.919e-06/0.5623, allocations: 0 / 407.3 MB, free: 5.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.355e-05/0.5623, allocations: 0 / 407.3 MB, free: 5.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.107e-05/0.5624, allocations: 4.875 kB / 407.3 MB, free: 5.316 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 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.0001062/0.5625, allocations: 104.4 kB / 407.4 MB, free: 5.211 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.798e-05/0.5625, allocations: 0 / 407.4 MB, free: 5.211 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.607e-05/0.5626, allocations: 7.5 kB / 407.4 MB, free: 5.199 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.177e-05/0.5626, allocations: 7.953 kB / 407.4 MB, free: 5.191 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.5626, allocations: 0 / 407.4 MB, free: 5.191 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.5627, allocations: 11.86 kB / 407.4 MB, free: 5.18 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002155/0.5629, allocations: 152.9 kB / 407.5 MB, free: 4.984 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.5629, allocations: 0.875 kB / 407.6 MB, free: 4.984 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001832/0.5631, allocations: 11.98 kB / 407.6 MB, free: 4.973 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.661e-06/0.5632, allocations: 0 / 407.6 MB, free: 4.973 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.5632, allocations: 0 / 407.6 MB, free: 4.973 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.5632, allocations: 0 / 407.6 MB, free: 4.973 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.033e-05/0.5632, allocations: 3.953 kB / 407.6 MB, free: 4.969 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000283/0.5635, allocations: 85.72 kB / 407.6 MB, free: 4.875 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.318e-05/0.5636, allocations: 85.14 kB / 407.7 MB, free: 4.773 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.798e-05/0.5637, allocations: 0 / 407.7 MB, free: 4.773 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.046e-05/0.5638, allocations: 0 / 407.7 MB, free: 4.773 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.936e-05/0.5638, allocations: 7.938 kB / 407.7 MB, free: 4.766 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.502e-05/0.5638, allocations: 4 kB / 407.7 MB, free: 4.762 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.313e-05/0.5639, allocations: 78.28 kB / 407.8 MB, free: 4.688 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.72e-07/0.564, allocations: 4.062 kB / 407.8 MB, free: 4.684 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005707/0.5645, allocations: 4 kB / 407.8 MB, free: 4.68 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0007829/0.5653, allocations: 0.6066 MB / 408.4 MB, free: 4.051 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001652/0.5655, allocations: 19.92 kB / 408.5 MB, free: 4.031 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.5656, allocations: 0 / 408.5 MB, free: 4.031 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.705e-05/0.5656, allocations: 11.19 kB / 408.5 MB, free: 4.023 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001896/0.5658, allocations: 0 / 408.5 MB, free: 4.023 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006641/0.5665, allocations: 155.5 kB / 408.6 MB, free: 3.844 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.5669, allocations: 0.6848 MB / 409.3 MB, free: 3.133 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.635e-05/0.567, allocations: 3.938 kB / 409.3 MB, free: 3.129 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.804e-05/0.567, allocations: 7.438 kB / 409.3 MB, free: 3.121 MB / 330.7 MB Notification: Performance of SimCode: time 8.41e-07/0.567, allocations: 8 kB / 409.3 MB, free: 3.113 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02314/0.5902, allocations: 0.8722 MB / 410.2 MB, free: 2.301 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003187/0.5906, allocations: 145.6 kB / 410.3 MB, free: 2.07 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.484/3.075, allocations: 0 / 410.3 MB, free: 2.07 MB / 330.7 MB