Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.96/1.96, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.167e-05/3.174e-05, allocations: 4 kB / 292.2 MB, free: 8.719 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1002, allocations: 50.41 MB / 342.6 MB, free: 6.297 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4594/0.5596, allocations: 109.9 MB / 452.5 MB, free: 468 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003188/0.56, allocations: 95.48 kB / 452.6 MB, free: 420 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2991/0.8591, allocations: 80.51 MB / 0.5206 GB, free: 3.723 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.318e-06/0.8592, allocations: 3.984 kB / 0.5206 GB, free: 3.719 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003248/0.8595, allocations: 75.94 kB / 0.5207 GB, free: 3.645 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.01339/0.8729, allocations: 3.215 MB / 0.5238 GB, free: 372 kB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.723e-05/0.873, allocations: 12.88 kB / 0.5238 GB, free: 360 kB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.288/1.161, allocations: 444.4 kB / 0.5243 GB, free: 93.71 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006404/1.167, allocations: 0.7249 MB / 0.525 GB, free: 93.54 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01272/1.18, allocations: 3.35 MB / 0.5282 GB, free: 93.2 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003459/1.181, allocations: 236.1 kB / 0.5285 GB, free: 93.2 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001217/1.182, allocations: 312.9 kB / 0.5288 GB, free: 93.19 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.012/1.194, allocations: 4.057 MB / 0.5327 GB, free: 92.83 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001209/1.194, allocations: 1.625 kB / 0.5327 GB, free: 92.83 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005233/1.195, allocations: 141.4 kB / 0.5329 GB, free: 92.83 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002116/1.195, allocations: 143.3 kB / 0.533 GB, free: 92.82 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01043/1.205, allocations: 3.306 MB / 0.5362 GB, free: 92.8 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03304/1.238, allocations: 13.54 MB / 0.5494 GB, free: 90.34 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008511/1.247, allocations: 6.772 MB / 0.5561 GB, free: 85.14 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003295/1.25, allocations: 1.358 MB / 0.5574 GB, free: 85.12 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008899/1.259, allocations: 3.627 MB / 0.5609 GB, free: 84.45 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.877e-05/1.259, allocations: 51.95 kB / 0.561 GB, free: 84.4 MB / 442.7 MB Notification: Performance of pre-optimization done (n=122): time 4.549e-06/1.259, allocations: 2.5 kB / 0.561 GB, free: 84.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=142): time 0.01422/1.274, allocations: 5.004 MB / 0.5659 GB, free: 81.97 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/1.274, allocations: 74.86 kB / 0.5659 GB, free: 81.9 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003485/1.277, allocations: 1.605 MB / 0.5675 GB, free: 81.27 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003243/1.278, allocations: 53.05 kB / 0.5676 GB, free: 81.21 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009754/1.279, allocations: 1.362 MB / 0.5689 GB, free: 80.12 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005941/1.279, allocations: 497.1 kB / 0.5694 GB, free: 79.74 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00015/1.279, allocations: 38.53 kB / 0.5694 GB, free: 79.71 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001279/1.279, allocations: 374.2 kB / 0.5698 GB, free: 79.37 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001623/1.281, allocations: 0.7097 MB / 0.5704 GB, free: 79.08 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001871/1.283, allocations: 1.158 MB / 0.5716 GB, free: 78.24 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001932/1.285, allocations: 0.9334 MB / 0.5725 GB, free: 77.87 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.105e-05/1.285, allocations: 3.375 kB / 0.5725 GB, free: 77.87 MB / 442.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.005936/1.291, allocations: 2.4 MB / 0.5748 GB, free: 76.98 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.554e-05/1.291, allocations: 8.719 kB / 0.5748 GB, free: 76.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.057e-05/1.291, allocations: 13.38 kB / 0.5749 GB, free: 76.98 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002088/1.293, allocations: 0.4892 MB / 0.5753 GB, free: 76.84 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002849/1.296, allocations: 379 kB / 0.5757 GB, free: 76.83 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01047/1.306, allocations: 6.369 MB / 0.5819 GB, free: 72.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002382/1.309, allocations: 89.84 kB / 0.582 GB, free: 72.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001678/1.309, allocations: 66.78 kB / 0.5821 GB, free: 72.28 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (178): * Single equations (assignments): 176 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(7,67.3%) 31} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003789/1.309, allocations: 197.4 kB / 0.5823 GB, free: 72.12 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003525/1.31, allocations: 192.9 kB / 0.5824 GB, free: 72.02 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005622/1.315, allocations: 2.42 MB / 0.5848 GB, free: 70.88 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.717e-05/1.316, allocations: 13.97 kB / 0.5848 GB, free: 70.88 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.218e-05/1.316, allocations: 7.344 kB / 0.5848 GB, free: 70.88 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.853e-05/1.316, allocations: 10.27 kB / 0.5848 GB, free: 70.88 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01225/1.328, allocations: 5.381 MB / 0.5901 GB, free: 68.36 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.039e-05/1.328, allocations: 0 / 0.5901 GB, free: 68.36 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001909/1.33, allocations: 219.8 kB / 0.5903 GB, free: 68.36 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002084/1.332, allocations: 496.9 kB / 0.5908 GB, free: 68.19 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002376/1.332, allocations: 38.14 kB / 0.5908 GB, free: 68.17 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01205/1.344, allocations: 10.43 MB / 0.601 GB, free: 59.48 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.359e-06/1.344, allocations: 3.062 kB / 0.601 GB, free: 59.48 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007345/1.352, allocations: 3.526 MB / 0.6044 GB, free: 57.66 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001291/1.353, allocations: 450.2 kB / 0.6049 GB, free: 57.34 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004089/1.353, allocations: 34.34 kB / 0.6049 GB, free: 57.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001771/1.355, allocations: 74.53 kB / 0.605 GB, free: 57.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003385/1.356, allocations: 104.3 kB / 0.6051 GB, free: 57.29 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001273/1.356, allocations: 40.72 kB / 0.6051 GB, free: 57.27 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002466/1.358, allocations: 1.239 MB / 0.6063 GB, free: 56.77 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.358, allocations: 2.75 kB / 0.6063 GB, free: 56.77 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003124/1.361, allocations: 0.6202 MB / 0.6069 GB, free: 56.71 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.stray.Phi.re,aimc.stator.stray.Phi.im,aimc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 95 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007993/1.369, allocations: 4.755 MB / 0.6116 GB, free: 53.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005389/1.375, allocations: 2.229 MB / 0.6137 GB, free: 52.92 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.73e-06/1.375, allocations: 0 / 0.6137 GB, free: 52.92 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003208/1.378, allocations: 1.608 MB / 0.6153 GB, free: 51.94 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003494/1.382, allocations: 497.8 kB / 0.6158 GB, free: 51.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01487/1.396, allocations: 5.593 MB / 0.6213 GB, free: 49.43 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002428/1.399, allocations: 2.378 MB / 0.6236 GB, free: 47.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002286/1.401, allocations: 1.136 MB / 0.6247 GB, free: 46.64 MB / 442.7 MB Notification: Performance of SimCode: time 2.184e-06/1.401, allocations: 0 / 0.6247 GB, free: 46.64 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.664/5.065, allocations: 109.6 MB / 0.7317 GB, free: 101.4 MB / 458.7 MB