Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// smpm.stator.zeroInductor.i0|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking") Notification: Performance of loadModel(Modelica): time 2.163/2.163, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.896e-05/2.903e-05, allocations: 4 kB / 292.2 MB, free: 8.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09388/0.09393, allocations: 50.42 MB / 342.6 MB, free: 5.879 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3961/0.4901, allocations: 116.8 MB / 459.3 MB, free: 10.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002846/0.4904, allocations: 98 kB / 459.4 MB, free: 10.02 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7261/1.217, allocations: 77.24 MB / 0.5241 GB, free: 94.7 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.218e-06/1.217, allocations: 5.25 kB / 0.5241 GB, free: 94.7 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003904/1.217, allocations: 80.44 kB / 0.5242 GB, free: 94.7 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 818 * Number of variables: 818 Notification: Performance of Generate backend data structure: time 0.011/1.228, allocations: 3.202 MB / 0.5273 GB, free: 94.13 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/1.228, allocations: 9.031 kB / 0.5273 GB, free: 94.13 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004306/1.232, allocations: 0.5939 MB / 0.5279 GB, free: 93.94 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0111/1.244, allocations: 3.137 MB / 0.5309 GB, free: 93.45 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003339/1.244, allocations: 233 kB / 0.5312 GB, free: 93.45 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0011/1.245, allocations: 314.5 kB / 0.5315 GB, free: 93.45 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01103/1.256, allocations: 4.006 MB / 0.5354 GB, free: 92.97 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001205/1.256, allocations: 9.219 kB / 0.5354 GB, free: 92.97 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00051/1.257, allocations: 134.8 kB / 0.5355 GB, free: 92.97 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001798/1.257, allocations: 137.3 kB / 0.5357 GB, free: 92.96 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009123/1.266, allocations: 3.22 MB / 0.5388 GB, free: 92.95 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02857/1.295, allocations: 13.81 MB / 0.5523 GB, free: 89.51 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005796/1.301, allocations: 5.829 MB / 0.558 GB, free: 85.33 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002723/1.303, allocations: 1.338 MB / 0.5593 GB, free: 85.31 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007309/1.311, allocations: 3.185 MB / 0.5624 GB, free: 84.5 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.207e-05/1.311, allocations: 47.78 kB / 0.5624 GB, free: 84.45 MB / 442.7 MB Notification: Performance of pre-optimization done (n=137): time 5.219e-06/1.311, allocations: 0 / 0.5624 GB, free: 84.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=141): time 0.009382/1.32, allocations: 4.53 MB / 0.5669 GB, free: 82.12 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.335e-05/1.32, allocations: 93.77 kB / 0.5669 GB, free: 82.02 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003373/1.324, allocations: 1.676 MB / 0.5686 GB, free: 81.32 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002746/1.324, allocations: 45.39 kB / 0.5686 GB, free: 81.27 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001015/1.325, allocations: 1.461 MB / 0.5701 GB, free: 80.16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005475/1.326, allocations: 483.3 kB / 0.5705 GB, free: 79.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/1.326, allocations: 35.72 kB / 0.5706 GB, free: 79.77 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/1.326, allocations: 375.4 kB / 0.5709 GB, free: 79.43 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001421/1.327, allocations: 0.7194 MB / 0.5716 GB, free: 79.15 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001655/1.329, allocations: 1.228 MB / 0.5728 GB, free: 78.22 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00178/1.331, allocations: 0.9067 MB / 0.5737 GB, free: 77.89 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-05/1.331, allocations: 6.031 kB / 0.5737 GB, free: 77.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.005541/1.336, allocations: 2.636 MB / 0.5763 GB, free: 76.86 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001283/1.338, allocations: 6.607 MB / 0.5827 GB, free: 69.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.281e-05/1.338, allocations: 17.16 kB / 0.5827 GB, free: 69.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001719/1.339, allocations: 0.5177 MB / 0.5832 GB, free: 69.67 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001906/1.341, allocations: 364.7 kB / 0.5836 GB, free: 69.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008609/1.35, allocations: 7.247 MB / 0.5907 GB, free: 64.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002282/1.352, allocations: 95.88 kB / 0.5908 GB, free: 64.19 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002846/1.353, allocations: 71.39 kB / 0.5908 GB, free: 64.18 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/1.353, allocations: 6.781 kB / 0.5908 GB, free: 64.18 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005051/1.358, allocations: 2.426 MB / 0.5932 GB, free: 63.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.913e-05/1.358, allocations: 13.25 kB / 0.5932 GB, free: 63.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0016/1.359, allocations: 0.5136 MB / 0.5937 GB, free: 63.08 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00197/1.361, allocations: 354.7 kB / 0.5941 GB, free: 63.07 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008485/1.37, allocations: 7.248 MB / 0.6011 GB, free: 57.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002032/1.372, allocations: 84.2 kB / 0.6012 GB, free: 57.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002396/1.372, allocations: 78.23 kB / 0.6013 GB, free: 57.55 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * 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 (187): * Single equations (assignments): 183 * 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 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.000454/1.373, allocations: 215.5 kB / 0.6015 GB, free: 57.38 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004705/1.373, allocations: 211.6 kB / 0.6017 GB, free: 57.27 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004902/1.378, allocations: 2.434 MB / 0.6041 GB, free: 56.12 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.612e-05/1.378, allocations: 15.66 kB / 0.6041 GB, free: 56.12 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.14e-05/1.378, allocations: 2.719 kB / 0.6041 GB, free: 56.12 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.842e-05/1.378, allocations: 11.11 kB / 0.6041 GB, free: 56.12 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01124/1.39, allocations: 5.279 MB / 0.6093 GB, free: 53.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/1.39, allocations: 0 / 0.6093 GB, free: 53.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001093/1.391, allocations: 178.4 kB / 0.6094 GB, free: 53.67 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002142/1.393, allocations: 0.6622 MB / 0.6101 GB, free: 53.43 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002132/1.393, allocations: 27.75 kB / 0.6101 GB, free: 53.41 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01353/1.407, allocations: 11.27 MB / 0.6211 GB, free: 44.48 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.808e-06/1.407, allocations: 7.5 kB / 0.6211 GB, free: 44.47 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006387/1.413, allocations: 3.673 MB / 0.6247 GB, free: 42.52 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001426/1.415, allocations: 465 kB / 0.6251 GB, free: 42.21 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004732/1.415, allocations: 30.8 kB / 0.6252 GB, free: 42.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001364/1.417, allocations: 87.67 kB / 0.6253 GB, free: 42.16 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003369/1.417, allocations: 118.2 kB / 0.6254 GB, free: 42.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001378/1.417, allocations: 41.19 kB / 0.6254 GB, free: 42.12 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002479/1.42, allocations: 1.279 MB / 0.6267 GB, free: 41.58 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.45e-07/1.42, allocations: 0 / 0.6267 GB, free: 41.58 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004977/1.425, allocations: 1.113 MB / 0.6277 GB, free: 41.47 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,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 (90): * Single equations (assignments): 85 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.000845/1.425, allocations: 0.5354 MB / 0.6283 GB, free: 41.26 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006756/1.432, allocations: 4.032 MB / 0.6322 GB, free: 38.31 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.272e-06/1.432, allocations: 0 / 0.6322 GB, free: 38.31 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002807/1.435, allocations: 1.702 MB / 0.6339 GB, free: 36.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003244/1.438, allocations: 0.5961 MB / 0.6345 GB, free: 36.25 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01006/1.448, allocations: 4.662 MB / 0.639 GB, free: 32.05 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002403/1.451, allocations: 2.374 MB / 0.6413 GB, free: 30.19 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003541/1.454, allocations: 0.7918 MB / 0.6421 GB, free: 29.68 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003382/1.455, allocations: 103.1 kB / 0.6422 GB, free: 29.59 MB / 442.7 MB Notification: Performance of SimCode: time 1.61e-06/1.455, allocations: 0 / 0.6422 GB, free: 29.59 MB / 442.7 MB Notification: Performance of Templates: time 0.1064/1.561, allocations: 43.84 MB / 0.685 GB, free: 11.68 MB / 458.7 MB