Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.869/1.869, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.069e-05/2.078e-05, allocations: 0 / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.2982, allocations: 44.5 MB / 294.2 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1898/0.4881, allocations: 109.3 MB / 403.5 MB, free: 4.578 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000317/0.4885, allocations: 87.95 kB / 403.6 MB, free: 4.492 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5255/1.014, allocations: 73.7 MB / 477.3 MB, free: 72.3 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.953e-06/1.014, allocations: 8 kB / 477.3 MB, free: 72.29 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002562/1.014, allocations: 87.7 kB / 477.4 MB, free: 72.21 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.01008/1.024, allocations: 3.125 MB / 480.5 MB, free: 69.02 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/1.025, allocations: 8.031 kB / 480.5 MB, free: 69.02 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00378/1.028, allocations: 0.5893 MB / 481.1 MB, free: 68.42 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009998/1.038, allocations: 3.085 MB / 484.2 MB, free: 65.34 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001385/1.039, allocations: 107.9 kB / 484.3 MB, free: 65.24 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000611/1.039, allocations: 187.9 kB / 484.5 MB, free: 65.05 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00702/1.046, allocations: 2.855 MB / 487.4 MB, free: 62.2 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007569/1.054, allocations: 3.463 MB / 490.8 MB, free: 58.59 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001008/1.054, allocations: 0 / 490.8 MB, free: 58.59 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003568/1.054, allocations: 4 kB / 490.8 MB, free: 58.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001711/1.054, allocations: 146.2 kB / 491 MB, free: 58.45 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.025/1.079, allocations: 12.79 MB / 0.492 GB, free: 45.32 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004952/1.084, allocations: 3.881 MB / 0.4958 GB, free: 40.93 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002014/1.086, allocations: 0.9487 MB / 0.4967 GB, free: 39.99 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005842/1.092, allocations: 2.596 MB / 0.4992 GB, free: 37.33 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.007e-05/1.092, allocations: 43.88 kB / 0.4993 GB, free: 37.28 MB / 362.7 MB Notification: Performance of pre-optimization done (n=110): time 3.837e-06/1.092, allocations: 4 kB / 0.4993 GB, free: 37.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=146): time 0.01552/1.108, allocations: 5.302 MB / 0.5044 GB, free: 31.92 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.014e-05/1.108, allocations: 68.72 kB / 0.5045 GB, free: 31.84 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002509/1.111, allocations: 1.363 MB / 0.5058 GB, free: 30.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001353/1.111, allocations: 25.7 kB / 0.5059 GB, free: 30.45 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00084/1.112, allocations: 1.449 MB / 0.5073 GB, free: 28.98 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004042/1.112, allocations: 488.7 kB / 0.5077 GB, free: 28.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001312/1.112, allocations: 0 / 0.5077 GB, free: 28.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001313/1.112, allocations: 390.7 kB / 0.5081 GB, free: 28.11 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001435/1.114, allocations: 0.7107 MB / 0.5088 GB, free: 27.39 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001718/1.115, allocations: 1.295 MB / 0.5101 GB, free: 25.83 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00235/1.118, allocations: 1.037 MB / 0.5111 GB, free: 24.8 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.336e-05/1.118, allocations: 8 kB / 0.5111 GB, free: 24.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.004893/1.123, allocations: 2.194 MB / 0.5132 GB, free: 22.58 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/1.123, allocations: 12 kB / 0.5132 GB, free: 22.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.539e-05/1.123, allocations: 24.03 kB / 0.5133 GB, free: 22.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004873/1.123, allocations: 126.5 kB / 0.5134 GB, free: 22.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003333/1.127, allocations: 495.1 kB / 0.5139 GB, free: 21.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008933/1.128, allocations: 1.264 MB / 0.5151 GB, free: 20.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002214/1.13, allocations: 75.97 kB / 0.5152 GB, free: 20.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001736/1.13, allocations: 83.98 kB / 0.5153 GB, free: 20.39 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.0003501/1.13, allocations: 160.3 kB / 0.5154 GB, free: 20.23 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003866/1.134, allocations: 1.747 MB / 0.5171 GB, free: 18.46 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003393/1.135, allocations: 189.7 kB / 0.5173 GB, free: 18.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004544/1.139, allocations: 1.897 MB / 0.5191 GB, free: 16.36 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.641e-05/1.139, allocations: 19.98 kB / 0.5192 GB, free: 16.34 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/1.139, allocations: 0 / 0.5192 GB, free: 16.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.635e-05/1.139, allocations: 3.984 kB / 0.5192 GB, free: 16.33 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009798/1.149, allocations: 4.558 MB / 0.5236 GB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.19e-05/1.149, allocations: 11.92 kB / 0.5236 GB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002593/1.152, allocations: 323.6 kB / 0.5239 GB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004124/1.152, allocations: 94.78 kB / 0.524 GB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.711e-05/1.152, allocations: 8 kB / 0.524 GB, free: 11.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007901/1.153, allocations: 1.233 MB / 0.5252 GB, free: 9.945 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/1.153, allocations: 7.938 kB / 0.5252 GB, free: 9.938 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005903/1.159, allocations: 3.168 MB / 0.5283 GB, free: 6.668 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00112/1.16, allocations: 446.7 kB / 0.5288 GB, free: 6.211 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003992/1.161, allocations: 4 kB / 0.5288 GB, free: 6.207 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001593/1.162, allocations: 59.89 kB / 0.5288 GB, free: 6.148 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002294/1.162, allocations: 93.2 kB / 0.5289 GB, free: 6.055 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001171/1.162, allocations: 40 kB / 0.529 GB, free: 6.016 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00189/1.164, allocations: 1.011 MB / 0.5299 GB, free: 5.012 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.81e-07/1.164, allocations: 0 / 0.5299 GB, free: 5.012 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002271/1.167, allocations: 0.496 MB / 0.5304 GB, free: 4.516 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.006705/1.173, allocations: 4.567 MB / 0.5349 GB, free: 15.89 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004751/1.178, allocations: 2.085 MB / 0.5369 GB, free: 13.76 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.96e-06/1.178, allocations: 0 / 0.5369 GB, free: 13.76 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002326/1.181, allocations: 1.136 MB / 0.538 GB, free: 12.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003263/1.184, allocations: 386.3 kB / 0.5384 GB, free: 12.19 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01443/1.198, allocations: 5.062 MB / 0.5433 GB, free: 7.039 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003037/1.201, allocations: 2.278 MB / 0.5456 GB, free: 4.727 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002856/1.204, allocations: 1.183 MB / 0.5467 GB, free: 3.543 MB / 378.7 MB Notification: Performance of SimCode: time 1.022e-06/1.204, allocations: 0 / 0.5467 GB, free: 3.543 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.057/5.262, allocations: 96.47 MB / 0.6409 GB, free: 54.69 MB / 394.7 MB