Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.882/2.882, allocations: 195 MB / 202.9 MB, free: 6.734 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.042e-05/3.053e-05, allocations: 3.375 kB / 249.8 MB, free: 5.285 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1242, allocations: 44.51 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6338/0.7581, allocations: 103 MB / 397.2 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003678/0.7585, allocations: 83.14 kB / 397.3 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4574/1.216, allocations: 79.59 MB / 476.9 MB, free: 10.45 MB / 378.7 MB Notification: Performance of FrontEnd: time 6.182e-06/1.216, allocations: 3.984 kB / 476.9 MB, free: 10.45 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004563/1.216, allocations: 79.92 kB / 477 MB, free: 10.37 MB / 378.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.01745/1.234, allocations: 3.199 MB / 480.2 MB, free: 7.102 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.815e-05/1.234, allocations: 12.02 kB / 480.2 MB, free: 7.09 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001982/1.236, allocations: 322.9 kB / 480.5 MB, free: 6.762 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009002/1.245, allocations: 0.7256 MB / 481.2 MB, free: 6.031 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02027/1.265, allocations: 3.356 MB / 484.6 MB, free: 2.617 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005559/1.266, allocations: 134.3 kB / 484.7 MB, free: 2.484 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00215/1.268, allocations: 187.9 kB / 484.9 MB, free: 2.301 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01965/1.288, allocations: 3.16 MB / 488.1 MB, free: 15.14 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02341/1.311, allocations: 3.649 MB / 491.7 MB, free: 11.37 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002427/1.312, allocations: 0 / 491.7 MB, free: 11.37 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001512/1.313, allocations: 4 kB / 491.7 MB, free: 11.37 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003723/1.314, allocations: 138.3 kB / 491.9 MB, free: 11.23 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4323/1.746, allocations: 12.94 MB / 0.493 GB, free: 74.7 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01293/1.759, allocations: 6.737 MB / 0.4996 GB, free: 69.51 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004808/1.764, allocations: 1.305 MB / 0.5008 GB, free: 69.5 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0148/1.779, allocations: 3.516 MB / 0.5043 GB, free: 68.91 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.391e-05/1.779, allocations: 50.45 kB / 0.5043 GB, free: 68.88 MB / 394.7 MB Notification: Performance of pre-optimization done (n=122): time 5.821e-06/1.779, allocations: 0 / 0.5043 GB, free: 68.88 MB / 394.7 MB Notification: Performance of matching and sorting (n=142): time 0.02355/1.802, allocations: 5.187 MB / 0.5094 GB, free: 67.92 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.528e-05/1.803, allocations: 70.53 kB / 0.5094 GB, free: 67.86 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003789/1.806, allocations: 1.342 MB / 0.5108 GB, free: 67.7 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003534/1.807, allocations: 25.7 kB / 0.5108 GB, free: 67.66 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001407/1.808, allocations: 1.432 MB / 0.5122 GB, free: 67.16 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006949/1.809, allocations: 476.5 kB / 0.5126 GB, free: 66.91 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001741/1.809, allocations: 2.375 kB / 0.5126 GB, free: 66.91 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001597/1.809, allocations: 368.8 kB / 0.513 GB, free: 66.61 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001946/1.811, allocations: 0.6818 MB / 0.5136 GB, free: 66.6 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002228/1.813, allocations: 1.125 MB / 0.5147 GB, free: 66.1 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003579/1.817, allocations: 1.026 MB / 0.5157 GB, free: 66.08 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.55e-05/1.817, allocations: 3.844 kB / 0.5158 GB, free: 66.08 MB / 394.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.009089/1.826, allocations: 2.497 MB / 0.5182 GB, free: 65.89 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.463e-05/1.826, allocations: 11.5 kB / 0.5182 GB, free: 65.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.528e-05/1.826, allocations: 11.72 kB / 0.5182 GB, free: 65.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002828/1.829, allocations: 488.6 kB / 0.5187 GB, free: 65.87 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003916/1.833, allocations: 390.1 kB / 0.5191 GB, free: 65.87 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0144/1.848, allocations: 6.133 MB / 0.525 GB, free: 63.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00303/1.851, allocations: 49.06 kB / 0.5251 GB, free: 63.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003338/1.851, allocations: 71.2 kB / 0.5252 GB, free: 63.3 MB / 394.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.0005406/1.852, allocations: 146.3 kB / 0.5253 GB, free: 63.18 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007444/1.852, allocations: 172.8 kB / 0.5255 GB, free: 63.09 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00866/1.861, allocations: 2.408 MB / 0.5278 GB, free: 62.74 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.613e-05/1.861, allocations: 13.88 kB / 0.5278 GB, free: 62.74 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.335e-05/1.861, allocations: 9.188 kB / 0.5278 GB, free: 62.74 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.636e-05/1.861, allocations: 6.984 kB / 0.5278 GB, free: 62.74 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01683/1.878, allocations: 4.97 MB / 0.5327 GB, free: 62.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.03e-05/1.878, allocations: 3.906 kB / 0.5327 GB, free: 62.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002638/1.881, allocations: 219.7 kB / 0.5329 GB, free: 62.12 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002851/1.884, allocations: 491.1 kB / 0.5334 GB, free: 62.08 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003219/1.884, allocations: 15.02 kB / 0.5334 GB, free: 62.08 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01649/1.901, allocations: 10.03 MB / 0.5432 GB, free: 55.42 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.067e-05/1.901, allocations: 9.719 kB / 0.5432 GB, free: 55.42 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01081/1.911, allocations: 3.502 MB / 0.5466 GB, free: 53.62 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001763/1.913, allocations: 427.2 kB / 0.547 GB, free: 53.32 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006052/1.914, allocations: 11.59 kB / 0.547 GB, free: 53.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002519/1.916, allocations: 54.69 kB / 0.5471 GB, free: 53.32 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000552/1.917, allocations: 108.1 kB / 0.5472 GB, free: 53.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002214/1.917, allocations: 46.88 kB / 0.5472 GB, free: 53.29 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002872/1.92, allocations: 1.008 MB / 0.5482 GB, free: 52.85 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.102e-06/1.92, allocations: 0 / 0.5482 GB, free: 52.85 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004449/1.925, allocations: 0.5397 MB / 0.5487 GB, free: 52.84 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.0125/1.937, allocations: 4.674 MB / 0.5533 GB, free: 50.12 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0077/1.945, allocations: 2.176 MB / 0.5554 GB, free: 49.15 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.518e-06/1.945, allocations: 0 / 0.5554 GB, free: 49.15 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004767/1.95, allocations: 1.582 MB / 0.557 GB, free: 48.19 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004288/1.954, allocations: 368.8 kB / 0.5573 GB, free: 48.11 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02065/1.975, allocations: 5.507 MB / 0.5627 GB, free: 45.84 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004241/1.979, allocations: 2.426 MB / 0.5651 GB, free: 44.75 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003224/1.982, allocations: 389.2 kB / 0.5654 GB, free: 44.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003248/1.986, allocations: 1.121 MB / 0.5665 GB, free: 43.77 MB / 394.7 MB Notification: Performance of SimCode: time 1.663e-06/1.986, allocations: 0 / 0.5665 GB, free: 43.77 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1816/2.167, allocations: 47.27 MB / 0.6127 GB, free: 18.73 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.000329/2.168, allocations: 172.8 kB / 0.6129 GB, free: 18.53 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 5.626/7.794, allocations: 0 / 0.6129 GB, free: 18.53 MB / 394.7 MB