Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Braking",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.354/2.354, allocations: 195 MB / 202.9 MB, free: 13.75 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.047e-05/3.045e-05, allocations: 4 kB / 249.8 MB, free: 14.77 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3848/0.3849, allocations: 44.49 MB / 294.3 MB, free: 14.36 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2531/0.638, allocations: 108.8 MB / 403.1 MB, free: 4.887 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003743/0.6385, allocations: 95.83 kB / 403.2 MB, free: 4.793 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6522/1.291, allocations: 75.73 MB / 479 MB, free: 70.45 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.414e-06/1.291, allocations: 0 / 479 MB, free: 70.45 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0004401/1.291, allocations: 87.88 kB / 479 MB, free: 70.37 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.01478/1.306, allocations: 3.195 MB / 482.2 MB, free: 67.12 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.057e-05/1.306, allocations: 8.031 kB / 482.2 MB, free: 67.11 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005464/1.312, allocations: 0.5936 MB / 482.8 MB, free: 66.51 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01414/1.326, allocations: 3.137 MB / 486 MB, free: 63.39 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002238/1.326, allocations: 100 kB / 486.1 MB, free: 63.29 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001335/1.327, allocations: 183.9 kB / 486.3 MB, free: 63.11 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01113/1.339, allocations: 3.07 MB / 489.3 MB, free: 60.04 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01227/1.351, allocations: 3.604 MB / 492.9 MB, free: 56.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001394/1.351, allocations: 11.92 kB / 492.9 MB, free: 56.26 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005158/1.352, allocations: 0 / 492.9 MB, free: 56.26 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002025/1.352, allocations: 146.1 kB / 493.1 MB, free: 56.11 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03503/1.387, allocations: 13.2 MB / 0.4944 GB, free: 42.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008242/1.395, allocations: 5.784 MB / 0.5001 GB, free: 36.18 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003396/1.399, allocations: 1.271 MB / 0.5013 GB, free: 34.9 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00949/1.408, allocations: 3.089 MB / 0.5043 GB, free: 31.78 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.302e-05/1.408, allocations: 51.81 kB / 0.5044 GB, free: 31.72 MB / 362.7 MB Notification: Performance of pre-optimization done (n=137): time 5.27e-06/1.408, allocations: 0 / 0.5044 GB, free: 31.72 MB / 362.7 MB Notification: Performance of matching and sorting (n=141): time 0.01341/1.422, allocations: 4.495 MB / 0.5088 GB, free: 27.12 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.498e-05/1.422, allocations: 90.42 kB / 0.5089 GB, free: 27.02 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003303/1.425, allocations: 1.401 MB / 0.5102 GB, free: 25.62 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003103/1.425, allocations: 29.7 kB / 0.5103 GB, free: 25.58 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001225/1.427, allocations: 1.454 MB / 0.5117 GB, free: 24.11 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006187/1.427, allocations: 465.1 kB / 0.5121 GB, free: 23.65 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/1.428, allocations: 0 / 0.5121 GB, free: 23.65 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001521/1.428, allocations: 373.9 kB / 0.5125 GB, free: 23.28 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001757/1.429, allocations: 0.6833 MB / 0.5131 GB, free: 22.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002068/1.432, allocations: 1.192 MB / 0.5143 GB, free: 21.17 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002817/1.434, allocations: 0.9508 MB / 0.5152 GB, free: 20.22 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.565e-05/1.434, allocations: 4 kB / 0.5152 GB, free: 20.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.00741/1.442, allocations: 2.565 MB / 0.5177 GB, free: 17.61 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001405/1.443, allocations: 6.537 MB / 0.5241 GB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.727e-05/1.443, allocations: 16 kB / 0.5241 GB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002309/1.446, allocations: 0.4991 MB / 0.5246 GB, free: 9.945 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003262/1.449, allocations: 371.4 kB / 0.525 GB, free: 9.582 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01158/1.461, allocations: 6.991 MB / 0.5318 GB, free: 2.246 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004338/1.465, allocations: 59.84 kB / 0.5319 GB, free: 2.188 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005615/1.466, allocations: 71.98 kB / 0.5319 GB, free: 2.117 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/1.466, allocations: 11.89 kB / 0.5319 GB, free: 2.105 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008594/1.474, allocations: 2.321 MB / 0.5342 GB, free: 15.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.352e-05/1.474, allocations: 20.03 kB / 0.5342 GB, free: 15.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002399/1.477, allocations: 0.5032 MB / 0.5347 GB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003396/1.48, allocations: 371.3 kB / 0.5351 GB, free: 14.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01328/1.494, allocations: 6.985 MB / 0.5419 GB, free: 7.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002632/1.496, allocations: 51.92 kB / 0.5419 GB, free: 7.469 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002632/1.497, allocations: 68 kB / 0.542 GB, free: 7.402 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.0005796/1.497, allocations: 168.3 kB / 0.5422 GB, free: 7.234 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00705/1.504, allocations: 2.232 MB / 0.5444 GB, free: 4.938 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007261/1.505, allocations: 197.6 kB / 0.5445 GB, free: 4.742 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00757/1.513, allocations: 2.344 MB / 0.5468 GB, free: 2.328 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.698e-05/1.513, allocations: 15.98 kB / 0.5468 GB, free: 2.312 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.35e-05/1.513, allocations: 4 kB / 0.5468 GB, free: 2.309 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-05/1.513, allocations: 7.969 kB / 0.5469 GB, free: 2.301 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01571/1.528, allocations: 4.818 MB / 0.5516 GB, free: 13.39 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.182e-05/1.529, allocations: 12.23 kB / 0.5516 GB, free: 13.38 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001881/1.53, allocations: 179.8 kB / 0.5517 GB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003106/1.534, allocations: 0.6325 MB / 0.5524 GB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002353/1.534, allocations: 8 kB / 0.5524 GB, free: 12.54 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02008/1.554, allocations: 10.9 MB / 0.563 GB, free: 1.082 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.555e-06/1.554, allocations: 0 / 0.563 GB, free: 1.082 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3337/1.888, allocations: 3.582 MB / 0.5665 GB, free: 93.21 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001816/1.89, allocations: 446.8 kB / 0.5669 GB, free: 93.11 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007922/1.89, allocations: 4.188 kB / 0.5669 GB, free: 93.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002333/1.893, allocations: 61.14 kB / 0.567 GB, free: 93.11 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000625/1.893, allocations: 117.2 kB / 0.5671 GB, free: 93.11 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001776/1.894, allocations: 40.56 kB / 0.5671 GB, free: 93.11 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003385/1.897, allocations: 1.046 MB / 0.5682 GB, free: 93 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.052e-06/1.897, allocations: 0 / 0.5682 GB, free: 93 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007707/1.905, allocations: 0.9794 MB / 0.5691 GB, free: 93 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.01092/1.916, allocations: 4.958 MB / 0.574 GB, free: 91.36 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01038/1.926, allocations: 3.934 MB / 0.5778 GB, free: 90.46 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.191e-05/1.926, allocations: 0 / 0.5778 GB, free: 90.46 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00434/1.931, allocations: 1.666 MB / 0.5794 GB, free: 89.91 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005034/1.936, allocations: 499.7 kB / 0.5799 GB, free: 89.9 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01853/1.954, allocations: 5.37 MB / 0.5852 GB, free: 88.77 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003294/1.958, allocations: 2.384 MB / 0.5875 GB, free: 88.02 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.004989/1.963, allocations: 0.7354 MB / 0.5882 GB, free: 87.98 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002383/1.965, allocations: 1.113 MB / 0.5893 GB, free: 87.98 MB / 394.7 MB Notification: Performance of SimCode: time 1.503e-06/1.965, allocations: 0 / 0.5893 GB, free: 87.98 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1871/2.152, allocations: 56.43 MB / 0.6444 GB, free: 55.59 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003263/2.153, allocations: 170.9 kB / 0.6446 GB, free: 55.4 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 6.082/8.235, allocations: 4 kB / 0.6446 GB, free: 55.39 MB / 394.7 MB