Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking") Notification: Performance of loadModel(Modelica): time 2.221/2.221, allocations: 224.7 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.979e-05/2.948e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1057, allocations: 50.41 MB / 345 MB, free: 8.93 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking): time 0.02087/0.1266, allocations: 12.22 MB / 357.2 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01219/0.1388, allocations: 4.511 MB / 361.7 MB, free: 8.141 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003055/0.1419, allocations: 119.6 kB / 361.8 MB, free: 8.023 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003541/0.1455, allocations: 0.8078 MB / 362.6 MB, free: 7.211 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006132/0.1517, allocations: 1.265 MB / 363.9 MB, free: 5.941 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003428/0.1552, allocations: 0.6665 MB / 364.6 MB, free: 5.273 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006394/0.1616, allocations: 2.126 MB / 366.7 MB, free: 3.145 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003973/0.1656, allocations: 1.663 MB / 368.4 MB, free: 1.469 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002437/0.1681, allocations: 1.013 MB / 369.4 MB, free: 464 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003097/0.1713, allocations: 1.277 MB / 370.7 MB, free: 15.17 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001889/0.1733, allocations: 287.8 kB / 370.9 MB, free: 14.89 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008821/0.1742, allocations: 124 kB / 371.1 MB, free: 14.77 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001147/0.1753, allocations: 0.681 MB / 371.7 MB, free: 14.09 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001363/0.1767, allocations: 300 kB / 372 MB, free: 13.79 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008472/0.1852, allocations: 5.208 MB / 377.2 MB, free: 8.57 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1853, allocations: 0 / 377.2 MB, free: 8.57 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.1853, allocations: 0 / 377.2 MB, free: 8.57 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002036/0.1855, allocations: 4 kB / 377.2 MB, free: 8.566 MB / 314.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.01271/0.1982, allocations: 3.376 MB / 380.6 MB, free: 5.121 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/0.1983, allocations: 8.031 kB / 380.6 MB, free: 5.113 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004979/0.2033, allocations: 0.6358 MB / 381.3 MB, free: 4.473 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006886/0.2102, allocations: 2.227 MB / 383.5 MB, free: 2.191 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003248/0.2106, allocations: 234.2 kB / 383.7 MB, free: 1.961 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001145/0.2118, allocations: 319.8 kB / 384 MB, free: 1.648 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01355/0.2253, allocations: 4.13 MB / 388.2 MB, free: 13.43 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001283/0.2255, allocations: 0 / 388.2 MB, free: 13.43 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006648/0.2262, allocations: 132 kB / 388.3 MB, free: 13.3 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002312/0.2265, allocations: 142.1 kB / 388.4 MB, free: 13.16 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01213/0.2386, allocations: 3.549 MB / 392 MB, free: 9.602 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.326/0.5647, allocations: 13.71 MB / 405.7 MB, free: 40.43 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009084/0.5738, allocations: 5.865 MB / 411.5 MB, free: 36.26 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01015/0.584, allocations: 3.166 MB / 414.7 MB, free: 34.81 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.809e-05/0.5841, allocations: 50.58 kB / 414.8 MB, free: 34.75 MB / 330.7 MB Notification: Performance of pre-optimization done (n=142): time 6.512e-06/0.5842, allocations: 3.062 kB / 414.8 MB, free: 34.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=146): time 0.02199/0.6062, allocations: 6.693 MB / 421.5 MB, free: 31.55 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.137e-05/0.6063, allocations: 90.27 kB / 421.5 MB, free: 31.46 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00365/0.6099, allocations: 1.634 MB / 423.2 MB, free: 30.8 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002987/0.6103, allocations: 47.17 kB / 423.2 MB, free: 30.75 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001009/0.6113, allocations: 1.382 MB / 424.6 MB, free: 29.63 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006371/0.612, allocations: 498.7 kB / 425.1 MB, free: 29.25 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001386/0.6121, allocations: 34.88 kB / 425.1 MB, free: 29.22 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.6123, allocations: 378.6 kB / 425.5 MB, free: 28.88 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002006/0.6143, allocations: 0.7591 MB / 426.3 MB, free: 28.6 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002194/0.6165, allocations: 1.296 MB / 427.6 MB, free: 27.52 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002258/0.6188, allocations: 0.9436 MB / 428.5 MB, free: 27.01 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.235e-05/0.6189, allocations: 7.5 kB / 428.5 MB, free: 27.01 MB / 330.7 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.006431/0.6253, allocations: 2.622 MB / 431.1 MB, free: 25.56 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001316/0.6267, allocations: 6.447 MB / 437.6 MB, free: 18.65 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.65e-05/0.6268, allocations: 17.06 kB / 437.6 MB, free: 18.65 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002085/0.6289, allocations: 0.5294 MB / 438.1 MB, free: 18.38 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002622/0.6315, allocations: 375.7 kB / 438.5 MB, free: 18.29 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01033/0.6419, allocations: 7.407 MB / 445.9 MB, free: 12.06 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002402/0.6443, allocations: 94.72 kB / 446 MB, free: 12.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002603/0.6446, allocations: 78.66 kB / 446.1 MB, free: 12 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.6446, allocations: 3.906 kB / 446.1 MB, free: 12 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005851/0.6505, allocations: 2.52 MB / 448.6 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.662e-05/0.6506, allocations: 21.33 kB / 448.6 MB, free: 10 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001648/0.6523, allocations: 0.5106 MB / 449.1 MB, free: 9.48 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002544/0.6548, allocations: 367.4 kB / 449.5 MB, free: 9.121 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01012/0.665, allocations: 7.476 MB / 457 MB, free: 1.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001565/0.6666, allocations: 87.84 kB / 457 MB, free: 1.164 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001675/0.6668, allocations: 76 kB / 457.1 MB, free: 1.09 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (193): * Single equations (assignments): 189 * 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.002498/0.6693, allocations: 0.9892 MB / 458.1 MB, free: 92 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007179/0.67, allocations: 205.6 kB / 458.3 MB, free: 15.88 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007121/0.6772, allocations: 2.536 MB / 460.8 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.614e-05/0.6772, allocations: 12 kB / 460.8 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.496e-05/0.6773, allocations: 4 kB / 460.9 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.475e-05/0.6773, allocations: 7.984 kB / 460.9 MB, free: 13.26 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01504/0.6924, allocations: 5.373 MB / 466.2 MB, free: 7.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-05/0.6924, allocations: 0 / 466.2 MB, free: 7.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001742/0.6942, allocations: 191.8 kB / 466.4 MB, free: 7.582 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002748/0.697, allocations: 0.6484 MB / 467.1 MB, free: 6.918 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002407/0.6972, allocations: 32 kB / 467.1 MB, free: 6.887 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01898/0.7162, allocations: 11.47 MB / 478.6 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.7163, allocations: 0 / 478.6 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009861/0.7262, allocations: 3.813 MB / 482.4 MB, free: 6.781 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001545/0.7278, allocations: 462.5 kB / 482.8 MB, free: 6.309 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005578/0.7283, allocations: 32.2 kB / 482.9 MB, free: 6.277 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001719/0.7301, allocations: 79.92 kB / 482.9 MB, free: 6.199 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004064/0.7305, allocations: 125.1 kB / 483.1 MB, free: 6.078 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001406/0.7306, allocations: 36 kB / 483.1 MB, free: 6.043 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003392/0.734, allocations: 1.25 MB / 484.4 MB, free: 4.766 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.22e-07/0.7341, allocations: 2.297 kB / 484.4 MB, free: 4.766 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005093/0.7392, allocations: 1.051 MB / 485.4 MB, free: 3.715 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,inertiaLoad.phi) * 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 (95): * Single equations (assignments): 90 * 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%) 8,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004817/0.7397, allocations: 179.2 kB / 485.6 MB, free: 3.535 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01065/0.7504, allocations: 4.226 MB / 489.8 MB, free: 15.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/0.7505, allocations: 0 / 489.8 MB, free: 15.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004679/0.7552, allocations: 1.815 MB / 491.6 MB, free: 13.33 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004857/0.7601, allocations: 0.5921 MB / 492.2 MB, free: 12.74 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01822/0.7784, allocations: 7.003 MB / 499.2 MB, free: 5.684 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003815/0.7822, allocations: 2.338 MB / 0.4898 GB, free: 3.316 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000885/0.7832, allocations: 139.4 kB / 0.4899 GB, free: 3.184 MB / 378.7 MB Notification: Performance of SimCode: time 1.503e-06/0.7832, allocations: 4 kB / 0.4899 GB, free: 3.18 MB / 378.7 MB Notification: Performance of Templates: time 0.4782/1.261, allocations: 104.5 MB / 0.592 GB, free: 123.7 MB / 442.7 MB