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.26/2.26, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.073e-05/3.064e-05, allocations: 6.75 kB / 249.8 MB, free: 5.262 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1193, allocations: 44.51 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.499/0.6184, allocations: 103 MB / 397.3 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003664/0.6188, allocations: 81.89 kB / 397.4 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3916/1.01, allocations: 79.18 MB / 476.5 MB, free: 10.85 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.624e-06/1.01, allocations: 4 kB / 476.5 MB, free: 10.85 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003973/1.011, allocations: 75.88 kB / 476.6 MB, free: 10.77 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.0157/1.027, allocations: 3.203 MB / 479.8 MB, free: 7.504 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.947e-05/1.027, allocations: 16.02 kB / 479.8 MB, free: 7.488 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006861/1.034, allocations: 0.7295 MB / 480.6 MB, free: 6.754 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01438/1.048, allocations: 3.344 MB / 483.9 MB, free: 3.352 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002758/1.048, allocations: 108 kB / 484 MB, free: 3.246 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001382/1.05, allocations: 187.9 kB / 484.2 MB, free: 3.062 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01182/1.062, allocations: 3.156 MB / 487.4 MB, free: 15.9 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01405/1.076, allocations: 3.645 MB / 491 MB, free: 12.14 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001393/1.076, allocations: 7.953 kB / 491 MB, free: 12.13 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005839/1.076, allocations: 0 / 491 MB, free: 12.13 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002407/1.077, allocations: 146.2 kB / 491.1 MB, free: 11.98 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3458/1.423, allocations: 12.94 MB / 0.4923 GB, free: 75.82 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01141/1.434, allocations: 6.74 MB / 0.4989 GB, free: 70.64 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004315/1.438, allocations: 1.314 MB / 0.5001 GB, free: 70.62 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01218/1.451, allocations: 3.507 MB / 0.5036 GB, free: 70.04 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.364e-05/1.451, allocations: 51.42 kB / 0.5036 GB, free: 70 MB / 394.7 MB Notification: Performance of pre-optimization done (n=122): time 5.901e-06/1.451, allocations: 0 / 0.5036 GB, free: 70 MB / 394.7 MB Notification: Performance of matching and sorting (n=142): time 0.02139/1.472, allocations: 5.185 MB / 0.5087 GB, free: 69.06 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/1.472, allocations: 72.23 kB / 0.5087 GB, free: 69 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003574/1.476, allocations: 1.34 MB / 0.51 GB, free: 68.84 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003474/1.476, allocations: 25.7 kB / 0.5101 GB, free: 68.8 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001394/1.478, allocations: 1.432 MB / 0.5115 GB, free: 68.3 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000712/1.478, allocations: 479.7 kB / 0.5119 GB, free: 68.05 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001642/1.479, allocations: 3.875 kB / 0.5119 GB, free: 68.05 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001504/1.479, allocations: 371.4 kB / 0.5123 GB, free: 67.74 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001717/1.48, allocations: 0.6784 MB / 0.513 GB, free: 67.74 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001946/1.482, allocations: 1.125 MB / 0.514 GB, free: 67.23 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003162/1.486, allocations: 1.023 MB / 0.515 GB, free: 67.22 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.322e-05/1.486, allocations: 3.906 kB / 0.5151 GB, free: 67.22 MB / 394.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.008059/1.494, allocations: 2.494 MB / 0.5175 GB, free: 67.03 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.202e-05/1.494, allocations: 13.94 kB / 0.5175 GB, free: 67.03 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.252e-05/1.494, allocations: 11.56 kB / 0.5175 GB, free: 67.03 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002412/1.496, allocations: 494.9 kB / 0.518 GB, free: 67.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003439/1.5, allocations: 388.3 kB / 0.5184 GB, free: 67.01 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01252/1.512, allocations: 6.132 MB / 0.5243 GB, free: 64.44 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00267/1.515, allocations: 48.8 kB / 0.5244 GB, free: 64.44 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003881/1.516, allocations: 68.34 kB / 0.5245 GB, free: 64.44 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.0005051/1.516, allocations: 146 kB / 0.5246 GB, free: 64.32 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007121/1.523, allocations: 2.265 MB / 0.5268 GB, free: 63.92 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009009/1.524, allocations: 173.9 kB / 0.527 GB, free: 63.83 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007876/1.532, allocations: 2.391 MB / 0.5293 GB, free: 63.48 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.626e-05/1.532, allocations: 17.42 kB / 0.5293 GB, free: 63.48 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.091e-05/1.532, allocations: 8.719 kB / 0.5293 GB, free: 63.48 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.731e-05/1.532, allocations: 7.547 kB / 0.5293 GB, free: 63.48 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01518/1.547, allocations: 4.971 MB / 0.5342 GB, free: 62.86 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.699e-05/1.547, allocations: 6.75 kB / 0.5342 GB, free: 62.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002265/1.55, allocations: 217.1 kB / 0.5344 GB, free: 62.86 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002444/1.552, allocations: 487.6 kB / 0.5349 GB, free: 62.82 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003146/1.553, allocations: 17.17 kB / 0.5349 GB, free: 62.82 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01413/1.567, allocations: 10.04 MB / 0.5447 GB, free: 55.65 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.075e-06/1.567, allocations: 0 / 0.5447 GB, free: 55.65 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009454/1.576, allocations: 3.507 MB / 0.5481 GB, free: 53.86 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001621/1.578, allocations: 435.5 kB / 0.5485 GB, free: 53.55 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006537/1.579, allocations: 7.812 kB / 0.5485 GB, free: 53.55 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002198/1.581, allocations: 54.33 kB / 0.5486 GB, free: 53.55 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005888/1.581, allocations: 107.8 kB / 0.5487 GB, free: 53.53 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001625/1.582, allocations: 38 kB / 0.5487 GB, free: 53.52 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002532/1.584, allocations: 1.016 MB / 0.5497 GB, free: 53.08 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.132e-06/1.584, allocations: 0 / 0.5497 GB, free: 53.08 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004233/1.588, allocations: 0.5413 MB / 0.5502 GB, free: 53.07 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.01068/1.599, allocations: 4.674 MB / 0.5548 GB, free: 50.36 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006699/1.606, allocations: 2.168 MB / 0.5569 GB, free: 49.4 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.071e-05/1.606, allocations: 4.938 kB / 0.5569 GB, free: 49.39 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004141/1.61, allocations: 1.578 MB / 0.5585 GB, free: 48.43 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003948/1.614, allocations: 351 kB / 0.5588 GB, free: 48.35 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01831/1.633, allocations: 5.511 MB / 0.5642 GB, free: 46.07 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003254/1.636, allocations: 2.424 MB / 0.5666 GB, free: 44.98 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002672/1.639, allocations: 386.3 kB / 0.5669 GB, free: 44.93 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002728/1.641, allocations: 1.121 MB / 0.568 GB, free: 44 MB / 394.7 MB Notification: Performance of SimCode: time 1.533e-06/1.641, allocations: 0 / 0.568 GB, free: 44 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1889/1.83, allocations: 45.66 MB / 0.6126 GB, free: 18.57 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003247/1.831, allocations: 168.8 kB / 0.6128 GB, free: 18.38 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.996/6.826, allocations: 4.031 kB / 0.6128 GB, free: 18.37 MB / 394.7 MB