Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.887/1.887, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.705e-05/2.715e-05, allocations: 11.94 kB / 249.7 MB, free: 15.18 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3037/0.3038, allocations: 44.49 MB / 294.2 MB, free: 14.19 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1826/0.4865, allocations: 104 MB / 398.2 MB, free: 9.879 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003136/0.4868, allocations: 87.89 kB / 398.2 MB, free: 9.793 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5649/1.052, allocations: 79.48 MB / 477.7 MB, free: 70.8 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.826e-06/1.052, allocations: 4 kB / 477.7 MB, free: 70.79 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003806/1.052, allocations: 83.77 kB / 477.8 MB, free: 70.71 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: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.01639/1.069, allocations: 3.203 MB / 481 MB, free: 67.45 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.066e-05/1.069, allocations: 9.094 kB / 481 MB, free: 67.45 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008435/1.077, allocations: 0.7295 MB / 481.8 MB, free: 66.71 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01124/1.088, allocations: 3.307 MB / 485.1 MB, free: 63.41 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001965/1.089, allocations: 108 kB / 485.2 MB, free: 63.3 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00105/1.09, allocations: 187.9 kB / 485.3 MB, free: 63.12 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009249/1.099, allocations: 3.156 MB / 488.5 MB, free: 59.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01078/1.11, allocations: 3.669 MB / 492.2 MB, free: 56.17 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001245/1.11, allocations: 7.906 kB / 492.2 MB, free: 56.16 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004655/1.11, allocations: 4 kB / 492.2 MB, free: 56.16 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001695/1.111, allocations: 142.4 kB / 492.3 MB, free: 56.02 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03018/1.141, allocations: 13.29 MB / 0.4938 GB, free: 42.51 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008467/1.149, allocations: 6.531 MB / 0.5001 GB, free: 35.15 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002893/1.152, allocations: 1.301 MB / 0.5014 GB, free: 33.86 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008351/1.161, allocations: 3.69 MB / 0.505 GB, free: 30.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.713e-05/1.161, allocations: 51.88 kB / 0.5051 GB, free: 30.06 MB / 362.7 MB Notification: Performance of pre-optimization done (n=144): time 4.379e-06/1.161, allocations: 0 / 0.5051 GB, free: 30.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=147): time 0.01118/1.172, allocations: 4.468 MB / 0.5094 GB, free: 25.49 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.245e-05/1.172, allocations: 68.97 kB / 0.5095 GB, free: 25.41 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002249/1.174, allocations: 1.239 MB / 0.5107 GB, free: 24.16 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001682/1.174, allocations: 25.7 kB / 0.5107 GB, free: 24.13 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000794/1.175, allocations: 1.376 MB / 0.5121 GB, free: 22.74 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004233/1.176, allocations: 492.7 kB / 0.5125 GB, free: 22.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001197/1.176, allocations: 0 / 0.5125 GB, free: 22.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001282/1.176, allocations: 386.7 kB / 0.5129 GB, free: 21.86 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001329/1.177, allocations: 0.6326 MB / 0.5135 GB, free: 21.23 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001552/1.179, allocations: 1.093 MB / 0.5146 GB, free: 19.95 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002356/1.181, allocations: 0.9743 MB / 0.5155 GB, free: 18.97 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.139e-05/1.181, allocations: 7.938 kB / 0.5155 GB, free: 18.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=225) (initialization): time 0.005406/1.187, allocations: 2.341 MB / 0.5178 GB, free: 16.58 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.899e-05/1.187, allocations: 12.31 kB / 0.5178 GB, free: 16.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.378e-05/1.187, allocations: 20 kB / 0.5179 GB, free: 16.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001273/1.188, allocations: 366.8 kB / 0.5182 GB, free: 16.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002551/1.191, allocations: 383.4 kB / 0.5186 GB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008065/1.199, allocations: 7.561 MB / 0.526 GB, free: 7.785 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002064/1.201, allocations: 47.88 kB / 0.526 GB, free: 7.738 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001648/1.201, allocations: 71.98 kB / 0.5261 GB, free: 7.668 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (192): * Single equations (assignments): 187 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 7,(3,100.0%) 9,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003718/1.201, allocations: 148.6 kB / 0.5262 GB, free: 7.516 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00518/1.207, allocations: 2.189 MB / 0.5284 GB, free: 5.262 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003304/1.207, allocations: 173.8 kB / 0.5285 GB, free: 5.09 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005739/1.213, allocations: 2.323 MB / 0.5308 GB, free: 2.699 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.611e-05/1.213, allocations: 20 kB / 0.5308 GB, free: 2.68 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.38e-05/1.213, allocations: 11.95 kB / 0.5308 GB, free: 2.668 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-05/1.213, allocations: 7.969 kB / 0.5308 GB, free: 2.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01139/1.224, allocations: 4.754 MB / 0.5355 GB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.19e-05/1.224, allocations: 3.984 kB / 0.5355 GB, free: 13.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001669/1.226, allocations: 191.7 kB / 0.5357 GB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002258/1.228, allocations: 0.5322 MB / 0.5362 GB, free: 13.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001283/1.228, allocations: 15.98 kB / 0.5362 GB, free: 13.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01708/1.245, allocations: 11.77 MB / 0.5477 GB, free: 0.6133 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.531e-06/1.245, allocations: 256 / 0.5477 GB, free: 0.6133 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008595/1.254, allocations: 3.37 MB / 0.551 GB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001299/1.255, allocations: 410.8 kB / 0.5514 GB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003929/1.256, allocations: 16.09 kB / 0.5514 GB, free: 12.67 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001513/1.257, allocations: 51.88 kB / 0.5514 GB, free: 12.62 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004914/1.258, allocations: 121.1 kB / 0.5516 GB, free: 12.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001504/1.258, allocations: 43.98 kB / 0.5516 GB, free: 12.46 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002254/1.26, allocations: 0.9249 MB / 0.5525 GB, free: 11.54 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.61e-07/1.26, allocations: 0 / 0.5525 GB, free: 11.54 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0036/1.264, allocations: 0.543 MB / 0.553 GB, free: 11 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (booleanStep.y,greaterThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 7,(1,100.0%) 13,(3,100.0%) 9,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01005/1.274, allocations: 4.536 MB / 0.5575 GB, free: 6.352 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005483/1.279, allocations: 2.24 MB / 0.5596 GB, free: 4.051 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.786e-06/1.28, allocations: 4.062 kB / 0.5597 GB, free: 4.047 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004011/1.284, allocations: 1.69 MB / 0.5613 GB, free: 2.297 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003458/1.287, allocations: 389.3 kB / 0.5617 GB, free: 1.914 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2834/1.57, allocations: 5.382 MB / 0.5669 GB, free: 96.09 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00327/1.574, allocations: 2.319 MB / 0.5692 GB, free: 95.37 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002524/1.576, allocations: 1.145 MB / 0.5703 GB, free: 95.36 MB / 394.7 MB Notification: Performance of SimCode: time 1.954e-06/1.576, allocations: 2.625 kB / 0.5703 GB, free: 95.36 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.992/5.568, allocations: 136.5 MB / 0.7036 GB, free: 8.754 MB / 410.7 MB