Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.673/2.673, allocations: 195 MB / 202.9 MB, free: 6.734 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.06e-05/3.075e-05, allocations: 3.094 kB / 249.8 MB, free: 5.301 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1038, allocations: 44.5 MB / 294.3 MB, free: 10.65 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6469/0.7508, allocations: 109.3 MB / 403.6 MB, free: 12.62 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003923/0.7513, allocations: 90.75 kB / 403.7 MB, free: 12.57 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4733/1.225, allocations: 74.07 MB / 477.8 MB, free: 9.684 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.975e-06/1.225, allocations: 3.938 kB / 477.8 MB, free: 9.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004728/1.225, allocations: 83.88 kB / 477.9 MB, free: 9.598 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: 823 * Number of variables: 823 Notification: Performance of Generate backend data structure: time 0.01771/1.243, allocations: 3.121 MB / 481 MB, free: 6.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.995e-05/1.243, allocations: 8.031 kB / 481 MB, free: 6.402 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002546/1.246, allocations: 323 kB / 481.3 MB, free: 6.074 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009322/1.255, allocations: 0.5774 MB / 481.9 MB, free: 5.492 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0222/1.277, allocations: 3.103 MB / 485 MB, free: 2.332 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004896/1.278, allocations: 134.3 kB / 485.1 MB, free: 2.199 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001813/1.28, allocations: 187.9 kB / 485.3 MB, free: 2.016 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01848/1.298, allocations: 2.859 MB / 488.1 MB, free: 15.15 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02246/1.321, allocations: 3.463 MB / 491.6 MB, free: 11.55 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002055/1.321, allocations: 7.891 kB / 491.6 MB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007553/1.322, allocations: 4 kB / 491.6 MB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003443/1.322, allocations: 142.2 kB / 491.8 MB, free: 11.4 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4798/1.802, allocations: 12.78 MB / 0.4927 GB, free: 76.39 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01022/1.812, allocations: 3.879 MB / 0.4965 GB, free: 73.65 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004366/1.817, allocations: 0.9427 MB / 0.4974 GB, free: 73.64 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01243/1.829, allocations: 2.584 MB / 0.4999 GB, free: 73.07 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.765e-05/1.829, allocations: 53.55 kB / 0.5 GB, free: 73.03 MB / 394.7 MB Notification: Performance of pre-optimization done (n=110): time 6.944e-06/1.829, allocations: 1 kB / 0.5 GB, free: 73.03 MB / 394.7 MB Notification: Performance of matching and sorting (n=146): time 0.03384/1.863, allocations: 5.296 MB / 0.5052 GB, free: 72.27 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.195e-05/1.863, allocations: 70.91 kB / 0.5052 GB, free: 72.2 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004834/1.868, allocations: 1.362 MB / 0.5066 GB, free: 72.04 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003862/1.869, allocations: 28.22 kB / 0.5066 GB, free: 72.01 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001875/1.87, allocations: 1.507 MB / 0.5081 GB, free: 71.47 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009164/1.871, allocations: 489.1 kB / 0.5085 GB, free: 71.19 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002737/1.872, allocations: 0 / 0.5085 GB, free: 71.19 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002156/1.872, allocations: 378.5 kB / 0.5089 GB, free: 70.88 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002575/1.875, allocations: 0.714 MB / 0.5096 GB, free: 70.88 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003042/1.878, allocations: 1.292 MB / 0.5109 GB, free: 70.19 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004451/1.882, allocations: 1.035 MB / 0.5119 GB, free: 70.18 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-05/1.882, allocations: 7.562 kB / 0.5119 GB, free: 70.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.009994/1.892, allocations: 2.312 MB / 0.5141 GB, free: 69.99 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.547e-05/1.892, allocations: 13.81 kB / 0.5141 GB, free: 69.99 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.86e-05/1.892, allocations: 19.62 kB / 0.5142 GB, free: 69.99 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008393/1.893, allocations: 116.4 kB / 0.5143 GB, free: 69.97 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00623/1.899, allocations: 492.3 kB / 0.5147 GB, free: 69.97 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001573/1.901, allocations: 1.262 MB / 0.516 GB, free: 68.78 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004051/1.905, allocations: 81.08 kB / 0.5161 GB, free: 68.77 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004658/1.906, allocations: 84.33 kB / 0.5161 GB, free: 68.77 MB / 394.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.0006722/1.906, allocations: 162.8 kB / 0.5163 GB, free: 68.65 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008019/1.907, allocations: 186.9 kB / 0.5165 GB, free: 68.55 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008132/1.915, allocations: 1.91 MB / 0.5183 GB, free: 68.43 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.818e-05/1.915, allocations: 13.66 kB / 0.5183 GB, free: 68.43 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/1.915, allocations: 0 / 0.5183 GB, free: 68.43 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-05/1.916, allocations: 10.55 kB / 0.5184 GB, free: 68.43 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01837/1.934, allocations: 4.567 MB / 0.5228 GB, free: 67.99 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.635e-05/1.934, allocations: 3.844 kB / 0.5228 GB, free: 67.99 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004613/1.939, allocations: 325.9 kB / 0.5231 GB, free: 67.99 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007399/1.939, allocations: 93.36 kB / 0.5232 GB, free: 67.96 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002233/1.94, allocations: 10.58 kB / 0.5232 GB, free: 67.96 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001313/1.941, allocations: 1.226 MB / 0.5244 GB, free: 66.78 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.466e-06/1.941, allocations: 6.125 kB / 0.5244 GB, free: 66.78 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01045/1.952, allocations: 3.166 MB / 0.5275 GB, free: 66.25 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001899/1.954, allocations: 447.1 kB / 0.5279 GB, free: 66.05 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006023/1.954, allocations: 9.219 kB / 0.528 GB, free: 66.05 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002939/1.957, allocations: 57.94 kB / 0.528 GB, free: 66.05 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003879/1.958, allocations: 93.81 kB / 0.5281 GB, free: 66.05 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002317/1.958, allocations: 40.12 kB / 0.5281 GB, free: 66.05 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00317/1.961, allocations: 1.011 MB / 0.5291 GB, free: 65.94 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.32e-07/1.961, allocations: 3.625 kB / 0.5291 GB, free: 65.94 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003844/1.965, allocations: 0.4968 MB / 0.5296 GB, free: 65.94 MB / 394.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.01195/1.977, allocations: 4.569 MB / 0.5341 GB, free: 64.36 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006703/1.984, allocations: 2.085 MB / 0.5361 GB, free: 64.03 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.646e-06/1.984, allocations: 0 / 0.5361 GB, free: 64.03 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003315/1.987, allocations: 1.141 MB / 0.5372 GB, free: 63.72 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00515/1.992, allocations: 391.8 kB / 0.5376 GB, free: 63.71 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0208/2.013, allocations: 5.046 MB / 0.5425 GB, free: 62.03 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004412/2.017, allocations: 2.324 MB / 0.5448 GB, free: 61 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.004776/2.022, allocations: 0.5033 MB / 0.5453 GB, free: 60.95 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004046/2.026, allocations: 1.164 MB / 0.5464 GB, free: 60 MB / 394.7 MB Notification: Performance of SimCode: time 5.17e-06/2.026, allocations: 0 / 0.5464 GB, free: 60 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3021/2.329, allocations: 44.55 MB / 0.5899 GB, free: 42.24 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0004372/2.329, allocations: 184.4 kB / 0.5901 GB, free: 42.04 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 5.255/7.584, allocations: 8.031 kB / 0.5901 GB, free: 42.03 MB / 394.7 MB