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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking") Notification: Performance of loadModel(Modelica): time 2.06/2.06, allocations: 225.8 MB / 239.4 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.039e-05/3.045e-05, allocations: 5.562 kB / 292.7 MB, free: 8.344 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08936/0.08941, allocations: 50.41 MB / 343.1 MB, free: 5.906 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4034/0.4929, allocations: 116.8 MB / 459.9 MB, free: 10.08 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000288/0.4932, allocations: 92.19 kB / 460 MB, free: 10.03 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5499/1.043, allocations: 77.24 MB / 0.5246 GB, free: 94.91 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.533e-06/1.043, allocations: 2.5 kB / 0.5246 GB, free: 94.91 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003905/1.044, allocations: 77.53 kB / 0.5247 GB, free: 94.91 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.01047/1.054, allocations: 3.205 MB / 0.5278 GB, free: 94.33 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/1.054, allocations: 12.56 kB / 0.5278 GB, free: 94.33 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004111/1.058, allocations: 0.5974 MB / 0.5284 GB, free: 94.14 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01032/1.069, allocations: 3.131 MB / 0.5315 GB, free: 93.66 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002449/1.069, allocations: 235.6 kB / 0.5317 GB, free: 93.65 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007298/1.07, allocations: 311 kB / 0.532 GB, free: 93.65 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009317/1.079, allocations: 4.01 MB / 0.5359 GB, free: 93.18 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001043/1.079, allocations: 6.656 kB / 0.5359 GB, free: 93.17 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004409/1.08, allocations: 135 kB / 0.536 GB, free: 93.17 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001875/1.08, allocations: 147.5 kB / 0.5362 GB, free: 93.16 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008074/1.088, allocations: 3.215 MB / 0.5393 GB, free: 93.15 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02576/1.114, allocations: 13.8 MB / 0.5528 GB, free: 89.71 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006056/1.12, allocations: 5.833 MB / 0.5585 GB, free: 85.53 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002522/1.122, allocations: 1.335 MB / 0.5598 GB, free: 85.51 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006907/1.129, allocations: 3.193 MB / 0.5629 GB, free: 84.68 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.022e-05/1.129, allocations: 53.94 kB / 0.563 GB, free: 84.62 MB / 442.7 MB Notification: Performance of pre-optimization done (n=137): time 4.679e-06/1.129, allocations: 0 / 0.563 GB, free: 84.62 MB / 442.7 MB Notification: Performance of matching and sorting (n=141): time 0.009061/1.138, allocations: 4.529 MB / 0.5674 GB, free: 82.29 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.776e-05/1.139, allocations: 91.39 kB / 0.5675 GB, free: 82.2 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003155/1.142, allocations: 1.672 MB / 0.5691 GB, free: 81.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002159/1.142, allocations: 53.55 kB / 0.5691 GB, free: 81.45 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000902/1.143, allocations: 1.453 MB / 0.5706 GB, free: 80.33 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004056/1.143, allocations: 486.2 kB / 0.571 GB, free: 79.97 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001263/1.143, allocations: 35.81 kB / 0.5711 GB, free: 79.94 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001279/1.144, allocations: 374.3 kB / 0.5714 GB, free: 79.61 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001427/1.145, allocations: 0.7187 MB / 0.5721 GB, free: 79.33 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001614/1.147, allocations: 1.235 MB / 0.5733 GB, free: 78.39 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001721/1.148, allocations: 0.9065 MB / 0.5742 GB, free: 78.06 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-05/1.148, allocations: 3.719 kB / 0.5742 GB, free: 78.06 MB / 442.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.005403/1.154, allocations: 2.632 MB / 0.5768 GB, free: 77.04 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001237/1.155, allocations: 6.612 MB / 0.5832 GB, free: 70.01 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.466e-05/1.155, allocations: 17.66 kB / 0.5833 GB, free: 70.01 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00149/1.157, allocations: 0.5145 MB / 0.5838 GB, free: 69.84 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001791/1.158, allocations: 364.6 kB / 0.5841 GB, free: 69.83 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008217/1.167, allocations: 7.246 MB / 0.5912 GB, free: 64.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002072/1.169, allocations: 94.73 kB / 0.5913 GB, free: 64.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002089/1.169, allocations: 68.56 kB / 0.5913 GB, free: 64.34 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/1.169, allocations: 6.875 kB / 0.5913 GB, free: 64.34 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004715/1.174, allocations: 2.423 MB / 0.5937 GB, free: 63.42 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.785e-05/1.174, allocations: 16.94 kB / 0.5937 GB, free: 63.42 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001379/1.175, allocations: 0.5134 MB / 0.5942 GB, free: 63.25 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00163/1.177, allocations: 359.3 kB / 0.5946 GB, free: 63.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008424/1.185, allocations: 7.251 MB / 0.6017 GB, free: 57.75 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002095/1.187, allocations: 85.31 kB / 0.6017 GB, free: 57.72 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002556/1.188, allocations: 73.97 kB / 0.6018 GB, free: 57.71 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.0004803/1.188, allocations: 212.2 kB / 0.602 GB, free: 57.55 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00047/1.189, allocations: 211.3 kB / 0.6022 GB, free: 57.44 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004741/1.194, allocations: 2.436 MB / 0.6046 GB, free: 56.29 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.767e-05/1.194, allocations: 16.59 kB / 0.6046 GB, free: 56.29 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/1.194, allocations: 7.594 kB / 0.6046 GB, free: 56.29 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.007e-05/1.194, allocations: 3.938 kB / 0.6046 GB, free: 56.29 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01057/1.204, allocations: 5.273 MB / 0.6098 GB, free: 53.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.107e-05/1.204, allocations: 3.969 kB / 0.6098 GB, free: 53.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001164/1.205, allocations: 176.5 kB / 0.6099 GB, free: 53.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002001/1.207, allocations: 0.6587 MB / 0.6106 GB, free: 53.61 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001585/1.208, allocations: 34.66 kB / 0.6106 GB, free: 53.59 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0129/1.221, allocations: 11.27 MB / 0.6216 GB, free: 44.64 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.386e-06/1.221, allocations: 3.938 kB / 0.6216 GB, free: 44.64 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006511/1.227, allocations: 3.669 MB / 0.6252 GB, free: 42.69 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001307/1.228, allocations: 464.1 kB / 0.6257 GB, free: 42.38 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00045/1.229, allocations: 33.83 kB / 0.6257 GB, free: 42.36 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001325/1.23, allocations: 81.08 kB / 0.6258 GB, free: 42.34 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003138/1.231, allocations: 120.5 kB / 0.6259 GB, free: 42.31 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001275/1.231, allocations: 36.91 kB / 0.6259 GB, free: 42.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002348/1.233, allocations: 1.282 MB / 0.6272 GB, free: 41.75 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.76e-07/1.233, allocations: 3.094 kB / 0.6272 GB, free: 41.75 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004793/1.238, allocations: 1.11 MB / 0.6283 GB, free: 41.65 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.0008314/1.239, allocations: 0.5421 MB / 0.6288 GB, free: 41.43 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006774/1.246, allocations: 4.032 MB / 0.6327 GB, free: 38.48 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.159e-06/1.246, allocations: 0 / 0.6327 GB, free: 38.48 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00276/1.248, allocations: 1.698 MB / 0.6344 GB, free: 36.87 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003244/1.252, allocations: 0.5961 MB / 0.635 GB, free: 36.41 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01051/1.262, allocations: 4.655 MB / 0.6395 GB, free: 32.22 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00242/1.265, allocations: 2.38 MB / 0.6418 GB, free: 30.36 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003577/1.268, allocations: 0.788 MB / 0.6426 GB, free: 29.85 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003195/1.269, allocations: 107.3 kB / 0.6427 GB, free: 29.75 MB / 442.7 MB Notification: Performance of SimCode: time 1.574e-06/1.269, allocations: 0 / 0.6427 GB, free: 29.75 MB / 442.7 MB Notification: Performance of Templates: time 0.09597/1.365, allocations: 43.84 MB / 0.6855 GB, free: 11.64 MB / 458.7 MB