Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking") Notification: Performance of loadModel(Modelica): time 1.757/1.757, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.657e-05/2.717e-05, allocations: 4 kB / 255.3 MB, free: 3.191 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07869/0.07874, allocations: 44.51 MB / 299.9 MB, free: 6.613 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3676/0.4464, allocations: 104.8 MB / 404.6 MB, free: 16.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002507/0.4467, allocations: 84.48 kB / 404.7 MB, free: 16.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2092/0.6559, allocations: 54.92 MB / 459.6 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.359e-06/0.656, allocations: 4 kB / 459.6 MB, free: 12.54 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003235/0.6563, allocations: 75.88 kB / 459.7 MB, free: 12.46 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 652 * Number of variables: 652 Notification: Performance of Generate backend data structure: time 0.008496/0.6648, allocations: 2.64 MB / 462.3 MB, free: 9.941 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.712e-05/0.6649, allocations: 8.031 kB / 462.3 MB, free: 9.934 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001816/0.6667, allocations: 356 kB / 462.7 MB, free: 9.582 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005843/0.6726, allocations: 1.937 MB / 464.6 MB, free: 7.816 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003089/0.6729, allocations: 185 kB / 464.8 MB, free: 7.633 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001039/0.674, allocations: 251.9 kB / 465 MB, free: 7.387 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01036/0.6844, allocations: 3.325 MB / 468.4 MB, free: 3.887 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001457/0.6845, allocations: 15.89 kB / 468.4 MB, free: 3.871 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007583/0.6853, allocations: 111.9 kB / 468.5 MB, free: 3.762 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001749/0.6855, allocations: 108.8 kB / 468.6 MB, free: 3.652 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007972/0.6935, allocations: 2.698 MB / 471.3 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02718/0.7207, allocations: 10.9 MB / 482.2 MB, free: 5.75 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004363/0.7251, allocations: 2.419 MB / 484.6 MB, free: 3.168 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002371/0.7275, allocations: 1.059 MB / 485.7 MB, free: 2.102 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003967/0.728, allocations: 138.4 kB / 485.8 MB, free: 1.945 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.407e-05/0.728, allocations: 43.88 kB / 485.9 MB, free: 1.895 MB / 362.7 MB Notification: Performance of pre-optimization done (n=136): time 4.85e-06/0.7281, allocations: 4 kB / 485.9 MB, free: 1.891 MB / 362.7 MB Notification: Performance of matching and sorting (n=150): time 0.01608/0.7441, allocations: 5.498 MB / 491.4 MB, free: 12.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.239e-05/0.7443, allocations: 98.41 kB / 491.5 MB, free: 12.23 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003656/0.7479, allocations: 1.564 MB / 493 MB, free: 10.67 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003075/0.7483, allocations: 53.7 kB / 493.1 MB, free: 10.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001105/0.7494, allocations: 1.14 MB / 494.2 MB, free: 9.457 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007153/0.7501, allocations: 0.5006 MB / 494.7 MB, free: 8.949 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001452/0.7503, allocations: 36 kB / 494.7 MB, free: 8.914 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002581/0.7506, allocations: 386.7 kB / 495.1 MB, free: 8.527 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001849/0.7524, allocations: 0.82 MB / 495.9 MB, free: 7.707 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002323/0.7548, allocations: 1.275 MB / 497.2 MB, free: 6.242 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002263/0.7571, allocations: 1.016 MB / 498.2 MB, free: 5.223 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-05/0.7571, allocations: 4 kB / 498.2 MB, free: 5.219 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.006592/0.7637, allocations: 2.674 MB / 0.4892 GB, free: 2.523 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002937/0.7667, allocations: 5.401 MB / 0.4944 GB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.224e-05/0.7668, allocations: 16 kB / 0.4945 GB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002423/0.7692, allocations: 0.6707 MB / 0.4951 GB, free: 12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002041/0.7713, allocations: 375.5 kB / 0.4955 GB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01336/0.7847, allocations: 8.26 MB / 0.5035 GB, free: 2.977 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002113/0.7868, allocations: 119.9 kB / 0.5037 GB, free: 2.859 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003109/0.7872, allocations: 75.98 kB / 0.5037 GB, free: 2.785 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.7872, allocations: 4 kB / 0.5037 GB, free: 2.781 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006276/0.7935, allocations: 2.603 MB / 0.5063 GB, free: 168 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-05/0.7936, allocations: 16 kB / 0.5063 GB, free: 152 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2278/1.021, allocations: 0.6456 MB / 0.5069 GB, free: 87.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001823/1.023, allocations: 365 kB / 0.5073 GB, free: 87.68 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01162/1.035, allocations: 8.326 MB / 0.5154 GB, free: 83.82 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001395/1.036, allocations: 103.1 kB / 0.5155 GB, free: 83.82 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002313/1.037, allocations: 70.88 kB / 0.5156 GB, free: 83.82 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (183): * Single equations (assignments): 179 * 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 {(2,100.0%) 9,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0005167/1.037, allocations: 209.6 kB / 0.5158 GB, free: 83.71 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000635/1.038, allocations: 206.1 kB / 0.516 GB, free: 83.71 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006616/1.044, allocations: 2.565 MB / 0.5185 GB, free: 83.59 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.35e-05/1.044, allocations: 15.19 kB / 0.5185 GB, free: 83.59 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/1.044, allocations: 3.062 kB / 0.5185 GB, free: 83.59 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.263e-05/1.045, allocations: 8.141 kB / 0.5185 GB, free: 83.59 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01257/1.057, allocations: 5.352 MB / 0.5237 GB, free: 83.09 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.227e-05/1.057, allocations: 3.906 kB / 0.5237 GB, free: 83.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001435/1.059, allocations: 232.6 kB / 0.5239 GB, free: 83.09 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00239/1.061, allocations: 0.7014 MB / 0.5246 GB, free: 83.05 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002209/1.061, allocations: 34.11 kB / 0.5247 GB, free: 83.05 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01196/1.073, allocations: 9.766 MB / 0.5342 GB, free: 77.89 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.494e-06/1.073, allocations: 7.562 kB / 0.5342 GB, free: 77.89 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00722/1.081, allocations: 3.863 MB / 0.538 GB, free: 77.4 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001366/1.082, allocations: 471.6 kB / 0.5384 GB, free: 77.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003764/1.082, allocations: 33.75 kB / 0.5385 GB, free: 77.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001332/1.084, allocations: 95.64 kB / 0.5386 GB, free: 77.2 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003384/1.084, allocations: 126 kB / 0.5387 GB, free: 77.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001385/1.084, allocations: 39.83 kB / 0.5387 GB, free: 77.2 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002292/1.087, allocations: 1.206 MB / 0.5399 GB, free: 76.9 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.03e-07/1.087, allocations: 2 kB / 0.5399 GB, free: 76.9 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004277/1.091, allocations: 1.031 MB / 0.5409 GB, free: 76.8 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],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 (113): * Single equations (assignments): 109 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.000718/1.092, allocations: 412 kB / 0.5413 GB, free: 76.67 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007822/1.099, allocations: 4.45 MB / 0.5456 GB, free: 74.52 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.431e-06/1.099, allocations: 0 / 0.5456 GB, free: 74.52 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003011/1.102, allocations: 1.702 MB / 0.5473 GB, free: 73.61 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003618/1.106, allocations: 0.5784 MB / 0.5479 GB, free: 73.46 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01192/1.118, allocations: 4.9 MB / 0.5526 GB, free: 71.64 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002235/1.12, allocations: 2.122 MB / 0.5547 GB, free: 70.68 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007577/1.121, allocations: 139.5 kB / 0.5549 GB, free: 70.67 MB / 394.7 MB Notification: Performance of SimCode: time 2.675e-06/1.121, allocations: 0 / 0.5549 GB, free: 70.67 MB / 394.7 MB Notification: Performance of Templates: time 0.09686/1.218, allocations: 83.12 MB / 0.636 GB, free: 8.246 MB / 394.7 MB