Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking") Notification: Performance of loadModel(Modelica): time 1.975/1.975, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.099e-05/3.109e-05, allocations: 4 kB / 292.7 MB, free: 8.312 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08939/0.08944, allocations: 50.42 MB / 343.1 MB, free: 5.875 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4404/0.5299, allocations: 110.6 MB / 453.7 MB, free: 44 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004257/0.5304, allocations: 86.14 kB / 453.8 MB, free: 0 / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2123/0.7427, allocations: 55.22 MB / 0.497 GB, free: 12.48 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.026e-06/0.7428, allocations: 3.938 kB / 0.497 GB, free: 12.48 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002127/0.743, allocations: 71.92 kB / 0.4971 GB, free: 12.41 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.006233/0.7492, allocations: 2.656 MB / 0.4997 GB, free: 9.688 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.7493, allocations: 8.031 kB / 0.4997 GB, free: 9.68 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001208/0.7505, allocations: 356 kB / 0.5001 GB, free: 9.328 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004979/0.7555, allocations: 1.937 MB / 0.5019 GB, free: 7.336 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002302/0.7558, allocations: 185 kB / 0.5021 GB, free: 7.152 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000556/0.7563, allocations: 251.9 kB / 0.5024 GB, free: 6.906 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007369/0.7637, allocations: 3.296 MB / 0.5056 GB, free: 3.441 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.153e-05/0.7638, allocations: 7.906 kB / 0.5056 GB, free: 3.434 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000376/0.7642, allocations: 112.3 kB / 0.5057 GB, free: 3.324 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001697/0.7644, allocations: 124.8 kB / 0.5058 GB, free: 3.199 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006343/0.7708, allocations: 2.657 MB / 0.5084 GB, free: 0.5352 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02198/0.7928, allocations: 10.91 MB / 0.5191 GB, free: 5.332 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004001/0.7968, allocations: 2.386 MB / 0.5214 GB, free: 2.785 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002132/0.799, allocations: 1.052 MB / 0.5224 GB, free: 1.734 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003582/0.7993, allocations: 142.3 kB / 0.5226 GB, free: 1.578 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.47e-05/0.7994, allocations: 51.88 kB / 0.5226 GB, free: 1.52 MB / 442.7 MB Notification: Performance of pre-optimization done (n=136): time 4.89e-06/0.7994, allocations: 0 / 0.5226 GB, free: 1.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=150): time 0.2641/1.064, allocations: 5.471 MB / 0.528 GB, free: 109.9 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.731e-05/1.064, allocations: 97.81 kB / 0.528 GB, free: 109.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003311/1.067, allocations: 1.567 MB / 0.5296 GB, free: 109.6 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002434/1.067, allocations: 52.67 kB / 0.5296 GB, free: 109.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000963/1.068, allocations: 1.209 MB / 0.5308 GB, free: 109.2 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005421/1.069, allocations: 0.5058 MB / 0.5313 GB, free: 108.9 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001324/1.069, allocations: 32.75 kB / 0.5313 GB, free: 108.9 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001417/1.069, allocations: 377.3 kB / 0.5317 GB, free: 108.6 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001735/1.071, allocations: 0.8175 MB / 0.5325 GB, free: 108.6 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00197/1.073, allocations: 1.269 MB / 0.5337 GB, free: 108.1 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002177/1.075, allocations: 1.007 MB / 0.5347 GB, free: 108.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.351e-05/1.075, allocations: 3.688 kB / 0.5347 GB, free: 108.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.006275/1.081, allocations: 2.765 MB / 0.5374 GB, free: 107.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001104/1.082, allocations: 5.588 MB / 0.5429 GB, free: 102 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.102e-05/1.083, allocations: 13.81 kB / 0.5429 GB, free: 102 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002213/1.085, allocations: 0.6675 MB / 0.5435 GB, free: 102 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002005/1.087, allocations: 373.2 kB / 0.5439 GB, free: 102 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01111/1.098, allocations: 8.265 MB / 0.552 GB, free: 98.03 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002126/1.1, allocations: 119.2 kB / 0.5521 GB, free: 98.03 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002757/1.1, allocations: 66.88 kB / 0.5521 GB, free: 98.03 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/1.1, allocations: 4.125 kB / 0.5521 GB, free: 98.03 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005443/1.106, allocations: 2.58 MB / 0.5547 GB, free: 97.95 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.691e-05/1.106, allocations: 12.09 kB / 0.5547 GB, free: 97.95 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002038/1.108, allocations: 0.6627 MB / 0.5553 GB, free: 97.92 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001918/1.11, allocations: 363.8 kB / 0.5557 GB, free: 97.92 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01083/1.121, allocations: 8.281 MB / 0.5638 GB, free: 92.83 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002098/1.123, allocations: 105.6 kB / 0.5639 GB, free: 92.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002359/1.123, allocations: 70.52 kB / 0.5639 GB, free: 92.79 MB / 442.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.0005067/1.124, allocations: 219.4 kB / 0.5641 GB, free: 92.62 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004907/1.124, allocations: 198.3 kB / 0.5643 GB, free: 92.52 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005316/1.13, allocations: 2.57 MB / 0.5668 GB, free: 91.54 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-05/1.13, allocations: 13.62 kB / 0.5668 GB, free: 91.54 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.691e-06/1.13, allocations: 3.875 kB / 0.5669 GB, free: 91.54 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.895e-05/1.13, allocations: 7.406 kB / 0.5669 GB, free: 91.54 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0117/1.141, allocations: 5.349 MB / 0.5721 GB, free: 89.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-05/1.141, allocations: 6.062 kB / 0.5721 GB, free: 89.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001414/1.143, allocations: 232.1 kB / 0.5723 GB, free: 89.39 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002235/1.145, allocations: 0.6932 MB / 0.573 GB, free: 89.18 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001453/1.145, allocations: 34.92 kB / 0.573 GB, free: 89.16 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01189/1.157, allocations: 9.771 MB / 0.5826 GB, free: 82.05 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.938e-06/1.157, allocations: 3.656 kB / 0.5826 GB, free: 82.05 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006822/1.164, allocations: 3.856 MB / 0.5863 GB, free: 80.27 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001082/1.165, allocations: 472.1 kB / 0.5868 GB, free: 79.97 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003493/1.166, allocations: 34.67 kB / 0.5868 GB, free: 79.95 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001261/1.167, allocations: 103.7 kB / 0.5869 GB, free: 79.93 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003055/1.167, allocations: 118.7 kB / 0.587 GB, free: 79.92 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001378/1.167, allocations: 41.66 kB / 0.5871 GB, free: 79.91 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002143/1.169, allocations: 1.201 MB / 0.5882 GB, free: 79.44 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.88e-07/1.169, allocations: 0 / 0.5882 GB, free: 79.44 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003951/1.173, allocations: 1.048 MB / 0.5893 GB, free: 79.34 MB / 442.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.000693/1.174, allocations: 430.2 kB / 0.5897 GB, free: 79.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007437/1.182, allocations: 4.395 MB / 0.594 GB, free: 77 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.39e-06/1.182, allocations: 1.375 kB / 0.594 GB, free: 77 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002871/1.185, allocations: 1.65 MB / 0.5956 GB, free: 76.11 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003381/1.188, allocations: 0.5789 MB / 0.5961 GB, free: 75.94 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009855/1.198, allocations: 4.5 MB / 0.6005 GB, free: 74.06 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002252/1.2, allocations: 2.156 MB / 0.6026 GB, free: 73.07 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003526/1.204, allocations: 0.8785 MB / 0.6035 GB, free: 73 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006283/1.204, allocations: 99.34 kB / 0.6036 GB, free: 73 MB / 442.7 MB Notification: Performance of SimCode: time 2.903e-06/1.204, allocations: 3.172 kB / 0.6036 GB, free: 73 MB / 442.7 MB Notification: Performance of Templates: time 0.1082/1.313, allocations: 44.27 MB / 0.6468 GB, free: 39.06 MB / 442.7 MB