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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking") Notification: Performance of loadModel(Modelica): time 1.982/1.982, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.547e-05/3.556e-05, allocations: 4 kB / 292.2 MB, free: 8.336 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0984/0.09846, allocations: 50.41 MB / 342.6 MB, free: 5.895 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3983/0.4968, allocations: 110.6 MB / 453.1 MB, free: 92 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002611/0.4972, allocations: 90.06 kB / 453.2 MB, free: 44 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2323/0.7294, allocations: 55.23 MB / 0.4966 GB, free: 12.5 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.7295, allocations: 0 / 0.4966 GB, free: 12.5 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002288/0.7297, allocations: 71.94 kB / 0.4966 GB, free: 12.43 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.006589/0.7363, allocations: 2.656 MB / 0.4992 GB, free: 9.707 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.7364, allocations: 8.031 kB / 0.4992 GB, free: 9.699 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001287/0.7377, allocations: 360 kB / 0.4996 GB, free: 9.344 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004996/0.7427, allocations: 1.929 MB / 0.5014 GB, free: 7.359 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002201/0.7429, allocations: 193 kB / 0.5016 GB, free: 7.168 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006148/0.7436, allocations: 247.9 kB / 0.5019 GB, free: 6.926 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00767/0.7513, allocations: 3.3 MB / 0.5051 GB, free: 3.457 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.789e-05/0.7514, allocations: 7.906 kB / 0.5051 GB, free: 3.449 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003771/0.7518, allocations: 108.3 kB / 0.5052 GB, free: 3.344 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001686/0.752, allocations: 116.8 kB / 0.5053 GB, free: 3.227 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006747/0.7587, allocations: 2.657 MB / 0.5079 GB, free: 0.5625 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03536/0.7941, allocations: 10.91 MB / 0.5186 GB, free: 5.359 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007891/0.8021, allocations: 2.382 MB / 0.5209 GB, free: 2.816 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004359/0.8065, allocations: 1.052 MB / 0.5219 GB, free: 1.766 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006908/0.8072, allocations: 150.3 kB / 0.5221 GB, free: 1.602 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.296e-05/0.8073, allocations: 47.88 kB / 0.5221 GB, free: 1.547 MB / 442.7 MB Notification: Performance of pre-optimization done (n=136): time 8.693e-06/0.8074, allocations: 0 / 0.5221 GB, free: 1.547 MB / 442.7 MB Notification: Performance of matching and sorting (n=150): time 0.2573/1.065, allocations: 5.473 MB / 0.5274 GB, free: 109.4 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.722e-05/1.065, allocations: 97.95 kB / 0.5275 GB, free: 109.3 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003161/1.068, allocations: 1.559 MB / 0.5291 GB, free: 109.2 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001931/1.068, allocations: 53.39 kB / 0.5291 GB, free: 109.1 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009733/1.069, allocations: 1.211 MB / 0.5303 GB, free: 108.7 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004976/1.07, allocations: 0.5014 MB / 0.5308 GB, free: 108.5 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001364/1.07, allocations: 33.78 kB / 0.5308 GB, free: 108.5 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000143/1.07, allocations: 379.8 kB / 0.5312 GB, free: 108.2 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001831/1.072, allocations: 0.822 MB / 0.532 GB, free: 108.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002096/1.074, allocations: 1.266 MB / 0.5332 GB, free: 107.7 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002131/1.076, allocations: 1.009 MB / 0.5342 GB, free: 107.6 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.339e-05/1.076, allocations: 5.75 kB / 0.5342 GB, free: 107.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.006396/1.082, allocations: 2.762 MB / 0.5369 GB, free: 107.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001072/1.084, allocations: 5.59 MB / 0.5424 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.247e-05/1.084, allocations: 14.06 kB / 0.5424 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002141/1.086, allocations: 0.6631 MB / 0.543 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001949/1.088, allocations: 370.1 kB / 0.5434 GB, free: 101.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0107/1.098, allocations: 8.278 MB / 0.5515 GB, free: 97.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002099/1.101, allocations: 107.3 kB / 0.5516 GB, free: 97.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000363/1.101, allocations: 75.11 kB / 0.5516 GB, free: 97.57 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/1.101, allocations: 2.75 kB / 0.5516 GB, free: 97.57 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005639/1.107, allocations: 2.573 MB / 0.5542 GB, free: 97.49 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.982e-05/1.107, allocations: 15.41 kB / 0.5542 GB, free: 97.49 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002099/1.109, allocations: 0.6691 MB / 0.5548 GB, free: 97.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001916/1.111, allocations: 366 kB / 0.5552 GB, free: 97.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01046/1.121, allocations: 8.267 MB / 0.5632 GB, free: 92.35 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002075/1.123, allocations: 101.4 kB / 0.5633 GB, free: 92.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002037/1.124, allocations: 73.38 kB / 0.5634 GB, free: 92.31 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.0005197/1.124, allocations: 217.9 kB / 0.5636 GB, free: 92.14 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004547/1.125, allocations: 202.9 kB / 0.5638 GB, free: 92.04 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00539/1.13, allocations: 2.566 MB / 0.5663 GB, free: 91.05 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.666e-05/1.13, allocations: 14.5 kB / 0.5663 GB, free: 91.05 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.864e-06/1.13, allocations: 10.31 kB / 0.5663 GB, free: 91.05 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.929e-05/1.13, allocations: 7.5 kB / 0.5664 GB, free: 91.05 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01142/1.142, allocations: 5.343 MB / 0.5716 GB, free: 88.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.176e-05/1.142, allocations: 3.469 kB / 0.5716 GB, free: 88.91 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001388/1.143, allocations: 234.4 kB / 0.5718 GB, free: 88.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002335/1.145, allocations: 0.6955 MB / 0.5725 GB, free: 88.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001566/1.146, allocations: 34.95 kB / 0.5725 GB, free: 88.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01164/1.157, allocations: 9.776 MB / 0.5821 GB, free: 81.55 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.434e-06/1.157, allocations: 4.156 kB / 0.5821 GB, free: 81.55 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007063/1.164, allocations: 3.864 MB / 0.5858 GB, free: 79.79 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001347/1.166, allocations: 473.6 kB / 0.5863 GB, free: 79.49 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003631/1.166, allocations: 33.28 kB / 0.5863 GB, free: 79.47 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001279/1.167, allocations: 100.1 kB / 0.5864 GB, free: 79.45 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003317/1.168, allocations: 119.9 kB / 0.5865 GB, free: 79.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001475/1.168, allocations: 43.72 kB / 0.5866 GB, free: 79.42 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002218/1.17, allocations: 1.204 MB / 0.5877 GB, free: 78.95 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.25e-07/1.17, allocations: 0 / 0.5877 GB, free: 78.95 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004257/1.174, allocations: 1.045 MB / 0.5888 GB, free: 78.86 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.0007112/1.175, allocations: 435.4 kB / 0.5892 GB, free: 78.71 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007508/1.183, allocations: 4.378 MB / 0.5935 GB, free: 76.51 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.714e-06/1.183, allocations: 1.375 kB / 0.5935 GB, free: 76.51 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002797/1.186, allocations: 1.671 MB / 0.5951 GB, free: 75.61 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00341/1.189, allocations: 0.5639 MB / 0.5956 GB, free: 75.46 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01013/1.199, allocations: 4.501 MB / 0.6 GB, free: 73.57 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002241/1.201, allocations: 2.155 MB / 0.6021 GB, free: 72.58 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003753/1.205, allocations: 0.8892 MB / 0.603 GB, free: 72.52 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004011/1.206, allocations: 102.5 kB / 0.6031 GB, free: 72.51 MB / 442.7 MB Notification: Performance of SimCode: time 1.766e-06/1.206, allocations: 3.938 kB / 0.6031 GB, free: 72.51 MB / 442.7 MB Notification: Performance of Templates: time 0.0916/1.297, allocations: 44.27 MB / 0.6463 GB, free: 38.52 MB / 442.7 MB