Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.911/1.911, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.284e-05/2.296e-05, allocations: 0 / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3209/0.321, allocations: 44.5 MB / 294.2 MB, free: 14.24 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1931/0.5141, allocations: 108.8 MB / 403 MB, free: 4.977 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003244/0.5145, allocations: 91.94 kB / 403.1 MB, free: 4.887 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5225/1.037, allocations: 75.74 MB / 478.9 MB, free: 70.65 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.625e-06/1.037, allocations: 4 kB / 478.9 MB, free: 70.64 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000331/1.037, allocations: 79.94 kB / 479 MB, free: 70.57 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: 817 * Number of variables: 817 Notification: Performance of Generate backend data structure: time 0.01198/1.049, allocations: 3.195 MB / 482.2 MB, free: 67.31 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/1.05, allocations: 12.03 kB / 482.2 MB, free: 67.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004436/1.054, allocations: 0.5936 MB / 482.8 MB, free: 66.7 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01108/1.065, allocations: 3.129 MB / 485.9 MB, free: 63.59 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001795/1.065, allocations: 104 kB / 486 MB, free: 63.48 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001013/1.066, allocations: 179.9 kB / 486.2 MB, free: 63.31 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008625/1.075, allocations: 3.074 MB / 489.2 MB, free: 60.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01006/1.085, allocations: 3.612 MB / 492.9 MB, free: 56.46 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001092/1.085, allocations: 3.938 kB / 492.9 MB, free: 56.45 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003845/1.086, allocations: 4 kB / 492.9 MB, free: 56.45 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001647/1.086, allocations: 138.1 kB / 493 MB, free: 56.31 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02687/1.113, allocations: 13.2 MB / 0.4943 GB, free: 42.87 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006559/1.119, allocations: 5.784 MB / 0.5 GB, free: 36.38 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002597/1.122, allocations: 1.267 MB / 0.5012 GB, free: 35.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007417/1.129, allocations: 3.094 MB / 0.5042 GB, free: 31.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.356e-05/1.129, allocations: 47.88 kB / 0.5043 GB, free: 31.92 MB / 362.7 MB Notification: Performance of pre-optimization done (n=137): time 3.877e-06/1.129, allocations: 0 / 0.5043 GB, free: 31.92 MB / 362.7 MB Notification: Performance of matching and sorting (n=141): time 0.01007/1.14, allocations: 4.502 MB / 0.5087 GB, free: 27.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.858e-05/1.14, allocations: 90.42 kB / 0.5088 GB, free: 27.21 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002518/1.142, allocations: 1.393 MB / 0.5101 GB, free: 25.82 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001378/1.142, allocations: 25.7 kB / 0.5102 GB, free: 25.79 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008395/1.143, allocations: 1.403 MB / 0.5115 GB, free: 24.38 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004011/1.144, allocations: 465.1 kB / 0.512 GB, free: 23.91 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/1.144, allocations: 0 / 0.512 GB, free: 23.91 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001312/1.144, allocations: 378.8 kB / 0.5123 GB, free: 23.54 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001374/1.145, allocations: 0.6833 MB / 0.513 GB, free: 22.85 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001634/1.147, allocations: 1.196 MB / 0.5142 GB, free: 21.42 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002204/1.149, allocations: 0.9469 MB / 0.5151 GB, free: 20.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.269e-05/1.149, allocations: 12 kB / 0.5151 GB, free: 20.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.005375/1.155, allocations: 2.431 MB / 0.5175 GB, free: 18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001192/1.156, allocations: 6.363 MB / 0.5237 GB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.167e-05/1.156, allocations: 19.94 kB / 0.5237 GB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001832/1.158, allocations: 0.5069 MB / 0.5242 GB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00261/1.16, allocations: 367.4 kB / 0.5245 GB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008561/1.169, allocations: 6.988 MB / 0.5314 GB, free: 2.906 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00231/1.171, allocations: 63.83 kB / 0.5314 GB, free: 2.844 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000167/1.171, allocations: 76.09 kB / 0.5315 GB, free: 2.77 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/1.171, allocations: 7.953 kB / 0.5315 GB, free: 2.762 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005219/1.177, allocations: 2.328 MB / 0.5338 GB, free: 412 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.264e-05/1.177, allocations: 16 kB / 0.5338 GB, free: 396 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001591/1.178, allocations: 0.5039 MB / 0.5343 GB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002546/1.181, allocations: 367.4 kB / 0.5346 GB, free: 15.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01118/1.192, allocations: 7.022 MB / 0.5415 GB, free: 8.141 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001545/1.194, allocations: 51.84 kB / 0.5416 GB, free: 8.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001899/1.194, allocations: 76 kB / 0.5416 GB, free: 8.016 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 183 * 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: 3 * 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: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0005058/1.194, allocations: 164.6 kB / 0.5418 GB, free: 7.848 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009038/1.203, allocations: 2.236 MB / 0.544 GB, free: 5.551 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009276/1.204, allocations: 193.6 kB / 0.5441 GB, free: 5.359 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009603/1.214, allocations: 2.352 MB / 0.5464 GB, free: 2.938 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-05/1.214, allocations: 12 kB / 0.5465 GB, free: 2.926 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.955e-05/1.214, allocations: 7.938 kB / 0.5465 GB, free: 2.918 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.535e-05/1.214, allocations: 11.97 kB / 0.5465 GB, free: 2.906 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01467/1.229, allocations: 4.818 MB / 0.5512 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/1.229, allocations: 0 / 0.5512 GB, free: 14 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001566/1.23, allocations: 175.8 kB / 0.5513 GB, free: 13.82 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002589/1.233, allocations: 0.6366 MB / 0.552 GB, free: 13.17 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001959/1.233, allocations: 19.98 kB / 0.552 GB, free: 13.15 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0174/1.251, allocations: 10.88 MB / 0.5626 GB, free: 1.707 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/1.251, allocations: 0 / 0.5626 GB, free: 1.707 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3078/1.559, allocations: 3.577 MB / 0.5661 GB, free: 93.39 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001572/1.56, allocations: 447.6 kB / 0.5665 GB, free: 93.3 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005152/1.561, allocations: 3.281 kB / 0.5665 GB, free: 93.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001696/1.562, allocations: 63.92 kB / 0.5666 GB, free: 93.3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004383/1.563, allocations: 117.4 kB / 0.5667 GB, free: 93.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001345/1.563, allocations: 37.97 kB / 0.5667 GB, free: 93.3 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002387/1.565, allocations: 1.047 MB / 0.5678 GB, free: 93.19 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.81e-07/1.566, allocations: 0 / 0.5678 GB, free: 93.19 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005339/1.571, allocations: 0.9722 MB / 0.5687 GB, free: 93.19 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,inertiaLoad.w) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 85 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.008434/1.579, allocations: 4.967 MB / 0.5736 GB, free: 91.56 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007104/1.586, allocations: 3.857 MB / 0.5773 GB, free: 90.67 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/1.587, allocations: 3.594 kB / 0.5773 GB, free: 90.67 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003113/1.59, allocations: 1.669 MB / 0.579 GB, free: 90.11 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003795/1.593, allocations: 0.4928 MB / 0.5795 GB, free: 90.11 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0138/1.607, allocations: 5.289 MB / 0.5846 GB, free: 88.97 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002406/1.61, allocations: 2.341 MB / 0.5869 GB, free: 88.22 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002159/1.612, allocations: 1.158 MB / 0.588 GB, free: 88.22 MB / 394.7 MB Notification: Performance of SimCode: time 1.022e-06/1.612, allocations: 7.172 kB / 0.588 GB, free: 88.22 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.71/5.322, allocations: 120.4 MB / 0.7056 GB, free: 9.82 MB / 410.7 MB