Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.397/2.397, allocations: 195 MB / 202.8 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.284e-05/2.293e-05, allocations: 4 kB / 249.7 MB, free: 14.81 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2953, allocations: 44.5 MB / 294.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1859/0.4813, allocations: 109.3 MB / 403.6 MB, free: 4.445 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000328/0.4817, allocations: 91.94 kB / 403.7 MB, free: 4.355 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5111/0.9928, allocations: 73.7 MB / 477.4 MB, free: 72.07 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.9928, allocations: 0 / 477.4 MB, free: 72.07 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002589/0.9931, allocations: 87.88 kB / 477.4 MB, free: 71.98 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: 823 * Number of variables: 823 Notification: Performance of Generate backend data structure: time 0.01035/1.003, allocations: 3.125 MB / 480.6 MB, free: 68.8 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/1.004, allocations: 12.03 kB / 480.6 MB, free: 68.79 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00396/1.008, allocations: 0.5776 MB / 481.2 MB, free: 68.2 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01029/1.018, allocations: 3.097 MB / 484.3 MB, free: 65.12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001354/1.018, allocations: 107.9 kB / 484.4 MB, free: 65.01 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006738/1.019, allocations: 187.8 kB / 484.5 MB, free: 64.83 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007312/1.026, allocations: 2.859 MB / 487.4 MB, free: 61.96 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007948/1.034, allocations: 3.459 MB / 490.9 MB, free: 58.37 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001012/1.034, allocations: 7.984 kB / 490.9 MB, free: 58.36 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003604/1.035, allocations: 4 kB / 490.9 MB, free: 58.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001672/1.035, allocations: 138.2 kB / 491 MB, free: 58.22 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03132/1.066, allocations: 12.78 MB / 0.492 GB, free: 45.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007126/1.073, allocations: 3.881 MB / 0.4958 GB, free: 40.72 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003117/1.076, allocations: 0.9449 MB / 0.4967 GB, free: 39.78 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008794/1.085, allocations: 2.597 MB / 0.4992 GB, free: 37.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.024e-05/1.085, allocations: 43.88 kB / 0.4993 GB, free: 37.07 MB / 362.7 MB Notification: Performance of pre-optimization done (n=110): time 5.37e-06/1.085, allocations: 4 kB / 0.4993 GB, free: 37.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=146): time 0.02245/1.108, allocations: 5.302 MB / 0.5045 GB, free: 31.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.898e-05/1.108, allocations: 72.72 kB / 0.5045 GB, free: 31.62 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003578/1.111, allocations: 1.363 MB / 0.5059 GB, free: 30.26 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002184/1.112, allocations: 25.7 kB / 0.5059 GB, free: 30.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001435/1.113, allocations: 1.507 MB / 0.5074 GB, free: 28.7 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000679/1.114, allocations: 484.7 kB / 0.5078 GB, free: 28.22 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000181/1.114, allocations: 0 / 0.5078 GB, free: 28.22 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001826/1.114, allocations: 373.9 kB / 0.5082 GB, free: 27.85 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002116/1.116, allocations: 0.7185 MB / 0.5089 GB, free: 27.13 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002509/1.119, allocations: 1.299 MB / 0.5101 GB, free: 25.57 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003434/1.122, allocations: 1.045 MB / 0.5112 GB, free: 24.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.877e-05/1.122, allocations: 4 kB / 0.5112 GB, free: 24.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.007925/1.13, allocations: 2.302 MB / 0.5134 GB, free: 22.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.955e-05/1.13, allocations: 16.78 kB / 0.5134 GB, free: 22.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.25e-05/1.131, allocations: 16 kB / 0.5134 GB, free: 22.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006504/1.131, allocations: 122.5 kB / 0.5136 GB, free: 22.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004874/1.136, allocations: 491.2 kB / 0.514 GB, free: 21.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001307/1.137, allocations: 1.264 MB / 0.5153 GB, free: 20.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002689/1.14, allocations: 79.95 kB / 0.5153 GB, free: 20.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003826/1.141, allocations: 80 kB / 0.5154 GB, free: 20.02 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (234): * Single equations (assignments): 231 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004148/1.141, allocations: 164.3 kB / 0.5156 GB, free: 19.86 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00453/1.146, allocations: 1.739 MB / 0.5173 GB, free: 18.1 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005825/1.146, allocations: 185.7 kB / 0.5174 GB, free: 17.91 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004748/1.151, allocations: 1.917 MB / 0.5193 GB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.761e-05/1.151, allocations: 12 kB / 0.5193 GB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.687e-06/1.151, allocations: 4 kB / 0.5193 GB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.647e-05/1.151, allocations: 7.969 kB / 0.5193 GB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01037/1.161, allocations: 4.558 MB / 0.5238 GB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.094e-05/1.161, allocations: 0 / 0.5238 GB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002618/1.164, allocations: 327.5 kB / 0.5241 GB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004224/1.165, allocations: 94.78 kB / 0.5242 GB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001104/1.165, allocations: 11.98 kB / 0.5242 GB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008061/1.165, allocations: 1.229 MB / 0.5254 GB, free: 9.574 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.335e-05/1.166, allocations: 3.938 kB / 0.5254 GB, free: 9.57 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006043/1.172, allocations: 3.179 MB / 0.5285 GB, free: 6.289 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001203/1.173, allocations: 438.7 kB / 0.5289 GB, free: 5.84 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004118/1.173, allocations: 4 kB / 0.5289 GB, free: 5.836 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001628/1.175, allocations: 63.89 kB / 0.529 GB, free: 5.773 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002308/1.175, allocations: 93.2 kB / 0.5291 GB, free: 5.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001166/1.175, allocations: 36 kB / 0.5291 GB, free: 5.645 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001898/1.177, allocations: 1.015 MB / 0.5301 GB, free: 4.637 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.52e-07/1.177, allocations: 0 / 0.5301 GB, free: 4.637 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002496/1.18, allocations: 0.4961 MB / 0.5306 GB, free: 4.141 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (143): * Single equations (assignments): 140 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007092/1.187, allocations: 4.569 MB / 0.5351 GB, free: 15.51 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004937/1.192, allocations: 2.078 MB / 0.5371 GB, free: 13.39 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/1.192, allocations: 0 / 0.5371 GB, free: 13.39 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002462/1.194, allocations: 1.14 MB / 0.5382 GB, free: 12.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003347/1.198, allocations: 387.5 kB / 0.5386 GB, free: 11.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01512/1.213, allocations: 5.056 MB / 0.5435 GB, free: 6.676 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003101/1.216, allocations: 2.325 MB / 0.5458 GB, free: 4.316 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003081/1.219, allocations: 0.5043 MB / 0.5463 GB, free: 3.809 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002742/1.222, allocations: 1.171 MB / 0.5474 GB, free: 2.637 MB / 378.7 MB Notification: Performance of SimCode: time 1.212e-06/1.222, allocations: 3.938 kB / 0.5474 GB, free: 2.633 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3965/1.618, allocations: 43.01 MB / 0.5894 GB, free: 96.69 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002387/1.619, allocations: 174.3 kB / 0.5896 GB, free: 96.5 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.785/5.404, allocations: 0 / 0.5896 GB, free: 96.5 MB / 394.7 MB