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.287/2.287, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.832e-05/2.847e-05, allocations: 2.75 kB / 249.8 MB, free: 5.258 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.104, allocations: 44.51 MB / 294.3 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5254/0.6295, allocations: 109.3 MB / 403.6 MB, free: 12.67 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004689/0.63, allocations: 87.58 kB / 403.7 MB, free: 12.62 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4335/1.064, allocations: 73.71 MB / 477.4 MB, free: 10.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.565e-06/1.064, allocations: 4 kB / 477.4 MB, free: 10.04 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004619/1.064, allocations: 87.81 kB / 477.5 MB, free: 9.949 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.01572/1.08, allocations: 3.125 MB / 480.6 MB, free: 6.758 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.069e-05/1.08, allocations: 8.031 kB / 480.6 MB, free: 6.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006888/1.087, allocations: 0.5813 MB / 481.2 MB, free: 6.164 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02009/1.107, allocations: 3.091 MB / 484.3 MB, free: 3.016 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004268/1.107, allocations: 100 kB / 484.4 MB, free: 2.918 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001873/1.109, allocations: 195.9 kB / 484.6 MB, free: 2.727 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01704/1.126, allocations: 2.859 MB / 487.5 MB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02079/1.147, allocations: 3.456 MB / 490.9 MB, free: 12.27 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002544/1.148, allocations: 7.891 kB / 490.9 MB, free: 12.26 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001146/1.149, allocations: 4 kB / 490.9 MB, free: 12.26 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004541/1.149, allocations: 146.2 kB / 491.1 MB, free: 12.11 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4224/1.572, allocations: 12.78 MB / 0.492 GB, free: 77.5 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007121/1.579, allocations: 3.88 MB / 0.4958 GB, free: 74.76 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003124/1.582, allocations: 0.9536 MB / 0.4968 GB, free: 74.75 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008284/1.59, allocations: 2.59 MB / 0.4993 GB, free: 74.17 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.428e-05/1.59, allocations: 44.42 kB / 0.4993 GB, free: 74.13 MB / 394.7 MB Notification: Performance of pre-optimization done (n=110): time 4.689e-06/1.59, allocations: 2.875 kB / 0.4993 GB, free: 74.13 MB / 394.7 MB Notification: Performance of matching and sorting (n=146): time 0.02155/1.612, allocations: 5.292 MB / 0.5045 GB, free: 73.39 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/1.612, allocations: 72.81 kB / 0.5046 GB, free: 73.33 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003498/1.616, allocations: 1.368 MB / 0.5059 GB, free: 73.17 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003394/1.616, allocations: 25.7 kB / 0.5059 GB, free: 73.14 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001443/1.617, allocations: 1.502 MB / 0.5074 GB, free: 72.6 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007125/1.618, allocations: 491.6 kB / 0.5079 GB, free: 72.31 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001702/1.618, allocations: 0 / 0.5079 GB, free: 72.31 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001779/1.619, allocations: 380.2 kB / 0.5082 GB, free: 72.01 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001798/1.62, allocations: 0.7122 MB / 0.5089 GB, free: 72 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002098/1.622, allocations: 1.287 MB / 0.5102 GB, free: 71.32 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00297/1.625, allocations: 1.043 MB / 0.5112 GB, free: 71.3 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-05/1.626, allocations: 10.97 kB / 0.5112 GB, free: 71.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.006703/1.632, allocations: 2.297 MB / 0.5135 GB, free: 71.12 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.083e-05/1.632, allocations: 18.52 kB / 0.5135 GB, free: 71.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.612e-05/1.632, allocations: 21.69 kB / 0.5135 GB, free: 71.12 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005697/1.633, allocations: 115.4 kB / 0.5136 GB, free: 71.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004069/1.637, allocations: 493.5 kB / 0.5141 GB, free: 71.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001106/1.638, allocations: 1.266 MB / 0.5153 GB, free: 69.9 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002773/1.641, allocations: 75.8 kB / 0.5154 GB, free: 69.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002523/1.641, allocations: 85.45 kB / 0.5155 GB, free: 69.9 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.0004576/1.642, allocations: 161.7 kB / 0.5156 GB, free: 69.78 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004774/1.647, allocations: 1.743 MB / 0.5173 GB, free: 69.59 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005171/1.647, allocations: 191 kB / 0.5175 GB, free: 69.5 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005317/1.652, allocations: 1.901 MB / 0.5194 GB, free: 69.37 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-05/1.652, allocations: 14.44 kB / 0.5194 GB, free: 69.37 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/1.653, allocations: 3.938 kB / 0.5194 GB, free: 69.37 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.092e-05/1.653, allocations: 9.984 kB / 0.5194 GB, free: 69.37 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01247/1.665, allocations: 4.563 MB / 0.5238 GB, free: 68.94 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.425e-05/1.665, allocations: 3.875 kB / 0.5238 GB, free: 68.94 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003044/1.668, allocations: 327.5 kB / 0.5242 GB, free: 68.94 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000509/1.669, allocations: 89.09 kB / 0.5242 GB, free: 68.91 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00014/1.669, allocations: 13.78 kB / 0.5243 GB, free: 68.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009875/1.67, allocations: 1.222 MB / 0.5255 GB, free: 67.73 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.353e-06/1.67, allocations: 7.406 kB / 0.5255 GB, free: 67.73 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007342/1.677, allocations: 3.162 MB / 0.5285 GB, free: 67.2 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001501/1.679, allocations: 457.1 kB / 0.529 GB, free: 67 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000508/1.679, allocations: 5.344 kB / 0.529 GB, free: 67 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001891/1.681, allocations: 68.19 kB / 0.5291 GB, free: 67 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002753/1.682, allocations: 83.17 kB / 0.5291 GB, free: 67 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001392/1.682, allocations: 41.94 kB / 0.5292 GB, free: 67 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002204/1.684, allocations: 1.013 MB / 0.5302 GB, free: 66.89 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.91e-07/1.684, allocations: 0 / 0.5302 GB, free: 66.89 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002959/1.687, allocations: 0.4963 MB / 0.5306 GB, free: 66.88 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.008368/1.695, allocations: 4.573 MB / 0.5351 GB, free: 65.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004723/1.7, allocations: 2.082 MB / 0.5371 GB, free: 64.98 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/1.7, allocations: 0 / 0.5371 GB, free: 64.98 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002473/1.703, allocations: 1.144 MB / 0.5383 GB, free: 64.54 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003791/1.706, allocations: 383.2 kB / 0.5386 GB, free: 64.45 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01626/1.723, allocations: 5.055 MB / 0.5436 GB, free: 62.5 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002997/1.726, allocations: 2.316 MB / 0.5458 GB, free: 61.49 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003562/1.729, allocations: 0.5111 MB / 0.5463 GB, free: 61.44 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003258/1.733, allocations: 1.166 MB / 0.5475 GB, free: 60.48 MB / 394.7 MB Notification: Performance of SimCode: time 1.964e-06/1.733, allocations: 0 / 0.5475 GB, free: 60.48 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1422/1.875, allocations: 43.03 MB / 0.5895 GB, free: 42.87 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0002836/1.875, allocations: 192.3 kB / 0.5897 GB, free: 42.66 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 4.688/6.563, allocations: 0 / 0.5897 GB, free: 42.66 MB / 394.7 MB