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 1.846/1.846, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.145e-05/3.178e-05, allocations: 4 kB / 255.4 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09053/0.09059, allocations: 44.51 MB / 299.9 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4405/0.5311, allocations: 103.6 MB / 403.6 MB, free: 11.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002876/0.5314, allocations: 82.98 kB / 403.7 MB, free: 11.42 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3623/0.8938, allocations: 80.21 MB / 483.9 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.8939, allocations: 0 / 483.9 MB, free: 0.5625 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003029/0.8942, allocations: 75.94 kB / 483.9 MB, free: 500 kB / 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.01316/0.9074, allocations: 3.211 MB / 487.2 MB, free: 13.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.089e-05/0.9074, allocations: 8.031 kB / 487.2 MB, free: 13.2 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001452/0.9089, allocations: 450.9 kB / 487.6 MB, free: 12.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005825/0.9148, allocations: 0.7217 MB / 488.3 MB, free: 12.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01227/0.9271, allocations: 3.352 MB / 491.7 MB, free: 8.613 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002667/0.9274, allocations: 230.3 kB / 491.9 MB, free: 8.387 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009787/0.9284, allocations: 315.9 kB / 492.2 MB, free: 8.078 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01169/0.9401, allocations: 4.099 MB / 496.3 MB, free: 3.859 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001042/0.9402, allocations: 4 kB / 496.3 MB, free: 3.855 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005154/0.9408, allocations: 132 kB / 496.4 MB, free: 3.727 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000214/0.941, allocations: 142.2 kB / 496.6 MB, free: 3.586 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01098/0.952, allocations: 3.344 MB / 499.9 MB, free: 240 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03531/0.9874, allocations: 13.56 MB / 0.5014 GB, free: 2.324 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01043/0.9978, allocations: 6.798 MB / 0.5081 GB, free: 10.62 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003884/1.002, allocations: 1.364 MB / 0.5094 GB, free: 9.266 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01052/1.012, allocations: 3.624 MB / 0.513 GB, free: 5.555 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.397e-05/1.012, allocations: 47.56 kB / 0.513 GB, free: 5.496 MB / 410.7 MB Notification: Performance of pre-optimization done (n=122): time 4.328e-06/1.012, allocations: 4 kB / 0.513 GB, free: 5.492 MB / 410.7 MB Notification: Performance of matching and sorting (n=142): time 0.01701/1.029, allocations: 5.009 MB / 0.5179 GB, free: 388 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.45e-05/1.03, allocations: 72.64 kB / 0.518 GB, free: 304 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2694/1.299, allocations: 1.608 MB / 0.5195 GB, free: 86.71 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003199/1.299, allocations: 50.52 kB / 0.5196 GB, free: 86.68 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001104/1.301, allocations: 1.368 MB / 0.5209 GB, free: 86.48 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006236/1.301, allocations: 495.1 kB / 0.5214 GB, free: 86.23 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000153/1.301, allocations: 32.59 kB / 0.5214 GB, free: 86.23 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001467/1.301, allocations: 379.8 kB / 0.5218 GB, free: 85.92 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001824/1.303, allocations: 0.7104 MB / 0.5225 GB, free: 85.91 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002247/1.306, allocations: 1.169 MB / 0.5236 GB, free: 85.4 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002338/1.308, allocations: 0.9319 MB / 0.5245 GB, free: 85.39 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.007e-05/1.308, allocations: 4.25 kB / 0.5245 GB, free: 85.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.006729/1.315, allocations: 2.434 MB / 0.5269 GB, free: 85.27 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.838e-05/1.315, allocations: 12.22 kB / 0.5269 GB, free: 85.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.336e-05/1.315, allocations: 13.56 kB / 0.5269 GB, free: 85.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002236/1.317, allocations: 0.4992 MB / 0.5274 GB, free: 85.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00304/1.32, allocations: 387.7 kB / 0.5278 GB, free: 85.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01169/1.332, allocations: 6.357 MB / 0.534 GB, free: 82.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002413/1.334, allocations: 78.84 kB / 0.5341 GB, free: 82.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000266/1.335, allocations: 70.19 kB / 0.5341 GB, free: 82.59 MB / 410.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.0004278/1.335, allocations: 207.8 kB / 0.5343 GB, free: 82.48 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005177/1.336, allocations: 194.6 kB / 0.5345 GB, free: 82.38 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006038/1.342, allocations: 2.409 MB / 0.5369 GB, free: 82.03 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.83e-05/1.342, allocations: 15.66 kB / 0.5369 GB, free: 82.03 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.411e-05/1.342, allocations: 7.875 kB / 0.5369 GB, free: 82.03 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.763e-05/1.342, allocations: 6.656 kB / 0.5369 GB, free: 82.03 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01262/1.354, allocations: 5.399 MB / 0.5422 GB, free: 81.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.238e-05/1.355, allocations: 0 / 0.5422 GB, free: 81.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001876/1.356, allocations: 220.6 kB / 0.5424 GB, free: 81.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002041/1.358, allocations: 0.492 MB / 0.5429 GB, free: 81.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002058/1.359, allocations: 30.09 kB / 0.5429 GB, free: 81.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0125/1.371, allocations: 10.41 MB / 0.5531 GB, free: 74.71 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/1.371, allocations: 3.562 kB / 0.5531 GB, free: 74.71 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007697/1.379, allocations: 3.518 MB / 0.5565 GB, free: 74 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001454/1.38, allocations: 454.6 kB / 0.5569 GB, free: 73.81 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005313/1.381, allocations: 32.06 kB / 0.557 GB, free: 73.81 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001923/1.383, allocations: 90.62 kB / 0.5571 GB, free: 73.81 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004053/1.383, allocations: 103.6 kB / 0.5572 GB, free: 73.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001498/1.384, allocations: 41.31 kB / 0.5572 GB, free: 73.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002697/1.386, allocations: 1.236 MB / 0.5584 GB, free: 73.69 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.42e-07/1.386, allocations: 2.844 kB / 0.5584 GB, free: 73.69 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003335/1.39, allocations: 0.6234 MB / 0.559 GB, free: 73.69 MB / 410.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.008695/1.398, allocations: 4.746 MB / 0.5636 GB, free: 71.66 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005763/1.404, allocations: 2.28 MB / 0.5659 GB, free: 70.66 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/1.404, allocations: 0 / 0.5659 GB, free: 70.66 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003508/1.408, allocations: 1.661 MB / 0.5675 GB, free: 69.64 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003613/1.411, allocations: 480.8 kB / 0.568 GB, free: 69.52 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01571/1.427, allocations: 5.608 MB / 0.5734 GB, free: 67.23 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002535/1.43, allocations: 2.378 MB / 0.5758 GB, free: 66.15 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002275/1.432, allocations: 1.137 MB / 0.5769 GB, free: 65.22 MB / 410.7 MB Notification: Performance of SimCode: time 1.573e-06/1.432, allocations: 0 / 0.5769 GB, free: 65.22 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.928/5.36, allocations: 109.9 MB / 0.6842 GB, free: 83.62 MB / 410.7 MB