Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.044/2.044, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.795e-05/2.793e-05, allocations: 0 / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3027/0.3028, allocations: 44.5 MB / 294.2 MB, free: 14.2 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1845/0.4874, allocations: 103 MB / 397.2 MB, free: 10.84 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003119/0.4878, allocations: 87.94 kB / 397.3 MB, free: 10.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5362/1.024, allocations: 79.17 MB / 476.4 MB, free: 72.22 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.564e-06/1.024, allocations: 0 / 476.4 MB, free: 72.22 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003232/1.024, allocations: 87.72 kB / 476.5 MB, free: 72.14 MB / 362.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.01283/1.037, allocations: 3.203 MB / 479.7 MB, free: 68.88 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/1.037, allocations: 9.094 kB / 479.7 MB, free: 68.87 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005997/1.043, allocations: 0.7296 MB / 480.5 MB, free: 68.13 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01141/1.055, allocations: 3.342 MB / 483.8 MB, free: 64.8 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001948/1.055, allocations: 100 kB / 483.9 MB, free: 64.7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001125/1.056, allocations: 191.8 kB / 484.1 MB, free: 64.51 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009149/1.065, allocations: 3.156 MB / 487.2 MB, free: 61.35 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01136/1.077, allocations: 3.645 MB / 490.9 MB, free: 57.59 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001347/1.077, allocations: 8 kB / 490.9 MB, free: 57.58 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006525/1.078, allocations: 0 / 490.9 MB, free: 57.58 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001945/1.078, allocations: 142.2 kB / 491 MB, free: 57.44 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03099/1.109, allocations: 12.95 MB / 0.4922 GB, free: 44.27 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008434/1.117, allocations: 6.738 MB / 0.4988 GB, free: 36.65 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003197/1.121, allocations: 1.315 MB / 0.5 GB, free: 35.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008857/1.129, allocations: 3.511 MB / 0.5035 GB, free: 31.78 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.177e-05/1.13, allocations: 43.88 kB / 0.5035 GB, free: 31.73 MB / 362.7 MB Notification: Performance of pre-optimization done (n=122): time 4.889e-06/1.13, allocations: 0 / 0.5035 GB, free: 31.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=142): time 0.01615/1.146, allocations: 5.194 MB / 0.5086 GB, free: 26.43 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.337e-05/1.146, allocations: 64.72 kB / 0.5086 GB, free: 26.36 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002762/1.149, allocations: 1.334 MB / 0.5099 GB, free: 25.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003013/1.149, allocations: 25.7 kB / 0.51 GB, free: 24.98 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009262/1.15, allocations: 1.391 MB / 0.5113 GB, free: 23.58 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005435/1.15, allocations: 472.9 kB / 0.5118 GB, free: 23.11 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001391/1.151, allocations: 0 / 0.5118 GB, free: 23.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000124/1.151, allocations: 374.8 kB / 0.5121 GB, free: 22.73 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001399/1.152, allocations: 0.6872 MB / 0.5128 GB, free: 22.05 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001608/1.154, allocations: 1.127 MB / 0.5139 GB, free: 20.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002524/1.156, allocations: 1.017 MB / 0.5149 GB, free: 19.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.161e-05/1.156, allocations: 7.938 kB / 0.5149 GB, free: 19.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.006049/1.162, allocations: 2.388 MB / 0.5172 GB, free: 17.3 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.382e-05/1.162, allocations: 12 kB / 0.5173 GB, free: 17.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.483e-05/1.163, allocations: 12 kB / 0.5173 GB, free: 17.28 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002028/1.165, allocations: 489.2 kB / 0.5177 GB, free: 16.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002898/1.167, allocations: 395.4 kB / 0.5181 GB, free: 16.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01034/1.178, allocations: 6.132 MB / 0.5241 GB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002207/1.18, allocations: 52.05 kB / 0.5241 GB, free: 9.988 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000245/1.18, allocations: 68 kB / 0.5242 GB, free: 9.922 MB / 362.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.0003721/1.181, allocations: 144.5 kB / 0.5244 GB, free: 9.773 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005682/1.186, allocations: 2.263 MB / 0.5266 GB, free: 7.449 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006322/1.187, allocations: 181.8 kB / 0.5267 GB, free: 7.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006162/1.193, allocations: 2.397 MB / 0.5291 GB, free: 4.809 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.943e-05/1.193, allocations: 19.95 kB / 0.5291 GB, free: 4.789 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-05/1.193, allocations: 8 kB / 0.5291 GB, free: 4.781 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-05/1.193, allocations: 3.984 kB / 0.5291 GB, free: 4.777 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01207/1.206, allocations: 4.964 MB / 0.534 GB, free: 15.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.411e-05/1.206, allocations: 0 / 0.534 GB, free: 15.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002033/1.208, allocations: 215.9 kB / 0.5342 GB, free: 15.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00225/1.21, allocations: 491.8 kB / 0.5346 GB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002412/1.21, allocations: 23.98 kB / 0.5347 GB, free: 14.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0146/1.225, allocations: 10.02 MB / 0.5444 GB, free: 4.398 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.104e-05/1.225, allocations: 4.031 kB / 0.5444 GB, free: 4.395 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008935/1.234, allocations: 3.512 MB / 0.5479 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001434/1.235, allocations: 426.8 kB / 0.5483 GB, free: 328 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004859/1.236, allocations: 15.95 kB / 0.5483 GB, free: 312 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001626/1.237, allocations: 55.88 kB / 0.5483 GB, free: 256 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004121/1.238, allocations: 105.5 kB / 0.5484 GB, free: 152 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001402/1.238, allocations: 39.98 kB / 0.5485 GB, free: 112 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002345/1.24, allocations: 1.004 MB / 0.5495 GB, free: 15.11 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.52e-07/1.24, allocations: 0 / 0.5495 GB, free: 15.11 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003386/1.244, allocations: 0.5508 MB / 0.55 GB, free: 14.56 MB / 394.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.strayReluctance.Phi.re,aimc.stator.strayReluctance.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.0106/1.254, allocations: 4.666 MB / 0.5546 GB, free: 9.789 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006771/1.261, allocations: 2.18 MB / 0.5567 GB, free: 7.594 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.897e-06/1.261, allocations: 0.5625 kB / 0.5567 GB, free: 7.594 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004315/1.266, allocations: 1.591 MB / 0.5582 GB, free: 5.953 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003402/1.269, allocations: 360 kB / 0.5586 GB, free: 5.602 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01776/1.287, allocations: 5.432 MB / 0.5639 GB, free: 100 kB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2696/1.557, allocations: 2.366 MB / 0.5662 GB, free: 96.68 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002621/1.559, allocations: 1.13 MB / 0.5673 GB, free: 96.68 MB / 394.7 MB Notification: Performance of SimCode: time 2.064e-06/1.559, allocations: 0.75 kB / 0.5673 GB, free: 96.68 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.791/5.351, allocations: 107.5 MB / 0.6723 GB, free: 24.92 MB / 394.7 MB