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.766/1.766, allocations: 194.9 MB / 208.4 MB, free: 3.238 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.748e-05/2.756e-05, allocations: 0 / 255.4 MB, free: 3.195 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07303/0.07308, allocations: 44.51 MB / 299.9 MB, free: 6.625 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3538/0.4269, allocations: 104.8 MB / 404.6 MB, free: 16.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002135/0.4272, allocations: 85.55 kB / 404.7 MB, free: 16.38 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.198/0.6252, allocations: 54.92 MB / 459.6 MB, free: 12.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.6253, allocations: 0 / 459.6 MB, free: 12.5 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002163/0.6255, allocations: 71.88 kB / 459.7 MB, free: 12.43 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.006069/0.6316, allocations: 2.648 MB / 462.4 MB, free: 9.898 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.6316, allocations: 12.03 kB / 462.4 MB, free: 9.887 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001239/0.6329, allocations: 352 kB / 462.7 MB, free: 9.539 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004839/0.6377, allocations: 1.944 MB / 464.7 MB, free: 7.824 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002081/0.638, allocations: 181 kB / 464.8 MB, free: 7.645 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005607/0.6385, allocations: 251.9 kB / 465.1 MB, free: 7.398 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008742/0.6473, allocations: 3.3 MB / 468.4 MB, free: 3.93 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.48e-05/0.6474, allocations: 7.906 kB / 468.4 MB, free: 3.922 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004011/0.6479, allocations: 108 kB / 468.5 MB, free: 3.816 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001613/0.648, allocations: 112.8 kB / 468.6 MB, free: 3.703 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006788/0.6548, allocations: 2.665 MB / 471.3 MB, free: 1.031 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02352/0.6784, allocations: 10.91 MB / 482.2 MB, free: 5.832 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003993/0.6824, allocations: 2.388 MB / 484.6 MB, free: 3.277 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002179/0.6846, allocations: 1.055 MB / 485.6 MB, free: 2.219 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003643/0.685, allocations: 146.4 kB / 485.8 MB, free: 2.059 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.993e-05/0.6851, allocations: 47.81 kB / 485.8 MB, free: 2 MB / 362.7 MB Notification: Performance of pre-optimization done (n=136): time 5.483e-06/0.6851, allocations: 3.938 kB / 485.8 MB, free: 1.996 MB / 362.7 MB Notification: Performance of matching and sorting (n=150): time 0.01453/0.6996, allocations: 5.495 MB / 491.3 MB, free: 12.45 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.051e-05/0.6998, allocations: 90.42 kB / 491.4 MB, free: 12.34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003417/0.7032, allocations: 1.564 MB / 493 MB, free: 10.78 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002837/0.7035, allocations: 53.7 kB / 493 MB, free: 10.72 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001097/0.7046, allocations: 1.143 MB / 494.2 MB, free: 9.566 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006384/0.7053, allocations: 0.5006 MB / 494.7 MB, free: 9.059 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001445/0.7054, allocations: 40 kB / 494.7 MB, free: 9.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000255/0.7057, allocations: 386.7 kB / 495.1 MB, free: 8.633 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001828/0.7076, allocations: 0.82 MB / 495.9 MB, free: 7.812 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002263/0.7098, allocations: 1.263 MB / 497.2 MB, free: 6.363 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002192/0.7121, allocations: 1.012 MB / 498.2 MB, free: 5.352 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-05/0.7121, allocations: 4 kB / 498.2 MB, free: 5.348 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.006151/0.7183, allocations: 2.639 MB / 0.4891 GB, free: 2.688 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002909/0.7212, allocations: 5.409 MB / 0.4944 GB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.077e-05/0.7213, allocations: 16 kB / 0.4944 GB, free: 12.84 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002328/0.7236, allocations: 0.6668 MB / 0.495 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001996/0.7256, allocations: 371.4 kB / 0.4954 GB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01291/0.7386, allocations: 8.252 MB / 0.5034 GB, free: 3.145 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002059/0.7407, allocations: 111.8 kB / 0.5035 GB, free: 3.035 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002395/0.7409, allocations: 71.98 kB / 0.5036 GB, free: 2.965 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.741, allocations: 4 kB / 0.5036 GB, free: 2.961 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005864/0.7468, allocations: 2.569 MB / 0.5061 GB, free: 388 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.502e-05/0.7469, allocations: 12 kB / 0.5061 GB, free: 376 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2214/0.9683, allocations: 0.6558 MB / 0.5068 GB, free: 87.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001867/0.9702, allocations: 368.8 kB / 0.5071 GB, free: 87.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01176/0.982, allocations: 8.327 MB / 0.5153 GB, free: 83.86 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001326/0.9833, allocations: 101.8 kB / 0.5154 GB, free: 83.86 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002103/0.9836, allocations: 74.66 kB / 0.5154 GB, free: 83.86 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.0004621/0.9841, allocations: 205.4 kB / 0.5156 GB, free: 83.76 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000594/0.9847, allocations: 205.3 kB / 0.5158 GB, free: 83.75 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006201/0.9909, allocations: 2.568 MB / 0.5183 GB, free: 83.64 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.971e-05/0.9909, allocations: 15.03 kB / 0.5183 GB, free: 83.64 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/0.991, allocations: 2.375 kB / 0.5183 GB, free: 83.64 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.602e-05/0.991, allocations: 10.94 kB / 0.5184 GB, free: 83.64 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01233/1.003, allocations: 5.342 MB / 0.5236 GB, free: 83.14 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.378e-05/1.003, allocations: 10.09 kB / 0.5236 GB, free: 83.14 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001371/1.005, allocations: 227.9 kB / 0.5238 GB, free: 83.14 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00228/1.007, allocations: 0.6967 MB / 0.5245 GB, free: 83.1 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000146/1.007, allocations: 34.47 kB / 0.5245 GB, free: 83.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01166/1.019, allocations: 9.761 MB / 0.534 GB, free: 77.94 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/1.019, allocations: 6.938 kB / 0.5341 GB, free: 77.94 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007112/1.026, allocations: 3.862 MB / 0.5378 GB, free: 77.43 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001328/1.027, allocations: 475.1 kB / 0.5383 GB, free: 77.23 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004307/1.028, allocations: 32.22 kB / 0.5383 GB, free: 77.23 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001255/1.029, allocations: 101.5 kB / 0.5384 GB, free: 77.23 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003336/1.03, allocations: 121 kB / 0.5385 GB, free: 77.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001438/1.03, allocations: 43.95 kB / 0.5386 GB, free: 77.23 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002154/1.032, allocations: 1.2 MB / 0.5397 GB, free: 76.93 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.42e-07/1.032, allocations: 2.219 kB / 0.5397 GB, free: 76.93 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004089/1.036, allocations: 1.035 MB / 0.5407 GB, free: 76.84 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.0006908/1.037, allocations: 426.7 kB / 0.5412 GB, free: 76.69 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007391/1.044, allocations: 4.339 MB / 0.5454 GB, free: 74.61 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.13e-06/1.044, allocations: 3.781 kB / 0.5454 GB, free: 74.61 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002783/1.047, allocations: 1.657 MB / 0.547 GB, free: 73.75 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003245/1.05, allocations: 0.5678 MB / 0.5476 GB, free: 73.6 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01119/1.061, allocations: 4.89 MB / 0.5523 GB, free: 71.79 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002183/1.064, allocations: 2.12 MB / 0.5544 GB, free: 70.82 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007348/1.064, allocations: 145.2 kB / 0.5545 GB, free: 70.82 MB / 394.7 MB Notification: Performance of SimCode: time 2.683e-06/1.064, allocations: 0 / 0.5545 GB, free: 70.82 MB / 394.7 MB Notification: Performance of Templates: time 0.08847/1.153, allocations: 82.87 MB / 0.6355 GB, free: 8.906 MB / 394.7 MB