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_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking") Notification: Performance of loadModel(Modelica): time 1.807/1.807, allocations: 194.9 MB / 208 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.76e-05/2.769e-05, allocations: 0 / 255.4 MB, free: 2.688 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0755/0.07555, allocations: 44.5 MB / 299.9 MB, free: 6.125 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3603/0.4359, allocations: 104.8 MB / 404.7 MB, free: 16.3 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002475/0.4362, allocations: 85.64 kB / 404.8 MB, free: 16.29 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2647/0.7009, allocations: 54.93 MB / 459.7 MB, free: 12.02 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.647e-06/0.701, allocations: 0 / 459.7 MB, free: 12.02 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000251/0.7012, allocations: 75.86 kB / 459.8 MB, free: 11.95 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.007187/0.7084, allocations: 2.638 MB / 462.4 MB, free: 9.422 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.7085, allocations: 8.031 kB / 462.4 MB, free: 9.414 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001599/0.7101, allocations: 360 kB / 462.7 MB, free: 9.059 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00533/0.7154, allocations: 1.938 MB / 464.7 MB, free: 7.336 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002273/0.7157, allocations: 181 kB / 464.9 MB, free: 7.156 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006249/0.7163, allocations: 259.9 kB / 465.1 MB, free: 6.902 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008085/0.7244, allocations: 3.288 MB / 468.4 MB, free: 3.445 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.904e-05/0.7246, allocations: 11.84 kB / 468.4 MB, free: 3.434 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000381/0.725, allocations: 108 kB / 468.5 MB, free: 3.328 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001653/0.7251, allocations: 112.8 kB / 468.6 MB, free: 3.215 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007095/0.7323, allocations: 2.669 MB / 471.3 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02444/0.7567, allocations: 10.9 MB / 482.2 MB, free: 5.344 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004058/0.7608, allocations: 2.395 MB / 484.6 MB, free: 2.781 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002151/0.763, allocations: 1.055 MB / 485.7 MB, free: 1.723 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003716/0.7634, allocations: 146.3 kB / 485.8 MB, free: 1.562 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.596e-05/0.7635, allocations: 55.8 kB / 485.8 MB, free: 1.496 MB / 362.7 MB Notification: Performance of pre-optimization done (n=136): time 4.513e-06/0.7635, allocations: 0 / 485.8 MB, free: 1.496 MB / 362.7 MB Notification: Performance of matching and sorting (n=150): time 0.01459/0.7781, allocations: 5.487 MB / 491.3 MB, free: 11.96 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.813e-05/0.7782, allocations: 94.42 kB / 491.4 MB, free: 11.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003371/0.7816, allocations: 1.568 MB / 493 MB, free: 10.28 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002402/0.7819, allocations: 49.7 kB / 493 MB, free: 10.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001301/0.7832, allocations: 1.21 MB / 494.3 MB, free: 9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006425/0.7838, allocations: 0.5045 MB / 494.8 MB, free: 8.488 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001426/0.784, allocations: 36 kB / 494.8 MB, free: 8.453 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002518/0.7843, allocations: 377.9 kB / 495.2 MB, free: 8.078 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001785/0.7861, allocations: 0.82 MB / 496 MB, free: 7.258 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002221/0.7883, allocations: 1.267 MB / 497.2 MB, free: 5.805 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002138/0.7905, allocations: 1.016 MB / 498.3 MB, free: 4.789 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.208e-05/0.7905, allocations: 4 kB / 498.3 MB, free: 4.785 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.006416/0.7969, allocations: 2.755 MB / 0.4893 GB, free: 2.008 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003149/0.8001, allocations: 5.588 MB / 0.4947 GB, free: 11.94 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.775e-05/0.8002, allocations: 15.94 kB / 0.4948 GB, free: 11.92 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002349/0.8025, allocations: 0.6707 MB / 0.4954 GB, free: 11.24 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002016/0.8046, allocations: 371.4 kB / 0.4958 GB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01305/0.8176, allocations: 8.256 MB / 0.5038 GB, free: 2.215 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002084/0.8198, allocations: 119.8 kB / 0.5039 GB, free: 2.098 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002804/0.8201, allocations: 68 kB / 0.504 GB, free: 2.031 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.8201, allocations: 4 kB / 0.504 GB, free: 2.027 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.2255/1.046, allocations: 2.564 MB / 0.5065 GB, free: 87.42 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.342e-05/1.046, allocations: 13.56 kB / 0.5065 GB, free: 87.42 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002142/1.048, allocations: 0.6721 MB / 0.5072 GB, free: 87.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001975/1.05, allocations: 364.7 kB / 0.5075 GB, free: 87.39 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01131/1.061, allocations: 8.261 MB / 0.5156 GB, free: 83.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002126/1.063, allocations: 101.1 kB / 0.5157 GB, free: 83.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003206/1.064, allocations: 74.8 kB / 0.5158 GB, free: 83.52 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.0004694/1.064, allocations: 214.1 kB / 0.516 GB, free: 83.41 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005614/1.065, allocations: 202.5 kB / 0.5162 GB, free: 83.41 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006185/1.071, allocations: 2.56 MB / 0.5187 GB, free: 83.28 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.109e-05/1.071, allocations: 14.28 kB / 0.5187 GB, free: 83.28 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/1.071, allocations: 2.938 kB / 0.5187 GB, free: 83.28 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.883e-05/1.071, allocations: 7.312 kB / 0.5187 GB, free: 83.28 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01188/1.083, allocations: 5.349 MB / 0.5239 GB, free: 82.79 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.169e-05/1.083, allocations: 3.875 kB / 0.5239 GB, free: 82.79 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001378/1.084, allocations: 237.1 kB / 0.5241 GB, free: 82.79 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002319/1.087, allocations: 0.687 MB / 0.5248 GB, free: 82.75 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001433/1.087, allocations: 38.81 kB / 0.5248 GB, free: 82.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01166/1.099, allocations: 9.768 MB / 0.5344 GB, free: 77.59 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.487e-06/1.099, allocations: 3.812 kB / 0.5344 GB, free: 77.59 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006767/1.105, allocations: 3.862 MB / 0.5382 GB, free: 77.06 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001205/1.107, allocations: 478.1 kB / 0.5386 GB, free: 76.86 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003454/1.107, allocations: 30.86 kB / 0.5386 GB, free: 76.86 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001256/1.108, allocations: 98.06 kB / 0.5387 GB, free: 76.84 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003308/1.109, allocations: 119 kB / 0.5389 GB, free: 76.82 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001421/1.109, allocations: 41.39 kB / 0.5389 GB, free: 76.81 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002274/1.111, allocations: 1.202 MB / 0.5401 GB, free: 76.34 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.86e-07/1.111, allocations: 5.047 kB / 0.5401 GB, free: 76.34 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004395/1.116, allocations: 1.044 MB / 0.5411 GB, free: 76.25 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.000713/1.116, allocations: 423.7 kB / 0.5415 GB, free: 76.11 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007064/1.123, allocations: 4.381 MB / 0.5458 GB, free: 74 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.03e-06/1.123, allocations: 6.719 kB / 0.5458 GB, free: 74 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002757/1.126, allocations: 1.67 MB / 0.5474 GB, free: 73.12 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003272/1.13, allocations: 0.5713 MB / 0.548 GB, free: 72.97 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01397/1.144, allocations: 4.876 MB / 0.5527 GB, free: 71.18 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003541/1.147, allocations: 2.149 MB / 0.5548 GB, free: 70.22 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.006207/1.153, allocations: 0.8844 MB / 0.5557 GB, free: 70.16 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006584/1.154, allocations: 104.4 kB / 0.5558 GB, free: 70.14 MB / 394.7 MB Notification: Performance of SimCode: time 2.571e-06/1.154, allocations: 0 / 0.5558 GB, free: 70.14 MB / 394.7 MB Notification: Performance of Templates: time 0.1314/1.286, allocations: 44.2 MB / 0.599 GB, free: 46.31 MB / 394.7 MB