Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking") Notification: Performance of loadModel(Modelica): time 2.078/2.078, allocations: 224.7 MB / 241.1 MB, free: 1.676 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.947e-05/2.95e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1091, allocations: 50.42 MB / 345 MB, free: 8.918 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking): time 0.01543/0.1246, allocations: 9.023 MB / 354 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008698/0.1333, allocations: 3.285 MB / 357.3 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002204/0.1356, allocations: 83.69 kB / 357.4 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002543/0.1382, allocations: 0.5982 MB / 358 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003985/0.1422, allocations: 0.7709 MB / 358.7 MB, free: 11.11 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001831/0.1441, allocations: 319.6 kB / 359.1 MB, free: 10.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004761/0.1489, allocations: 1.611 MB / 360.7 MB, free: 9.184 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003198/0.1521, allocations: 1.362 MB / 362 MB, free: 7.801 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002028/0.1542, allocations: 0.8297 MB / 362.9 MB, free: 6.969 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002756/0.157, allocations: 1.106 MB / 364 MB, free: 5.859 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00133/0.1584, allocations: 175.8 kB / 364.1 MB, free: 5.688 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000702/0.1592, allocations: 104 kB / 364.2 MB, free: 5.586 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001468/0.1607, allocations: 0.7009 MB / 364.9 MB, free: 4.883 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001254/0.1619, allocations: 260 kB / 365.2 MB, free: 4.629 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006621/0.1686, allocations: 4.059 MB / 369.3 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1687, allocations: 0 / 369.3 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.226e-06/0.1687, allocations: 0 / 369.3 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001776/0.1689, allocations: 0 / 369.3 MB, free: 0.5586 MB / 298.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.008839/0.1777, allocations: 2.68 MB / 371.9 MB, free: 13.82 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.1778, allocations: 8.031 kB / 371.9 MB, free: 13.81 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001866/0.1797, allocations: 340.1 kB / 372.3 MB, free: 13.47 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005654/0.1854, allocations: 1.804 MB / 374.1 MB, free: 11.61 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002888/0.1857, allocations: 193 kB / 374.3 MB, free: 11.42 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009479/0.1867, allocations: 243.9 kB / 374.5 MB, free: 11.18 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01095/0.1976, allocations: 3.394 MB / 377.9 MB, free: 7.684 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001217/0.1978, allocations: 11.91 kB / 377.9 MB, free: 7.672 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004195/0.1982, allocations: 99.98 kB / 378 MB, free: 7.574 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002085/0.1985, allocations: 124.8 kB / 378.1 MB, free: 7.449 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009757/0.2082, allocations: 2.919 MB / 381.1 MB, free: 4.516 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03003/0.2383, allocations: 10.86 MB / 391.9 MB, free: 9.359 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005301/0.2437, allocations: 2.429 MB / 394.3 MB, free: 6.773 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004555/0.2442, allocations: 122.4 kB / 394.5 MB, free: 6.637 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.114e-05/0.2443, allocations: 55.86 kB / 394.5 MB, free: 6.574 MB / 330.7 MB Notification: Performance of pre-optimization done (n=133): time 4.348e-06/0.2443, allocations: 4 kB / 394.5 MB, free: 6.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=147): time 0.3019/0.5462, allocations: 7.257 MB / 401.8 MB, free: 47.81 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.007e-05/0.5463, allocations: 99.05 kB / 401.9 MB, free: 47.71 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004788/0.5511, allocations: 1.563 MB / 403.4 MB, free: 47.39 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003456/0.5515, allocations: 55.72 kB / 403.5 MB, free: 47.34 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00105/0.5526, allocations: 1.15 MB / 404.6 MB, free: 46.72 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007752/0.5534, allocations: 0.4971 MB / 405.1 MB, free: 46.33 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001664/0.5536, allocations: 31.44 kB / 405.2 MB, free: 46.31 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.5538, allocations: 379.1 kB / 405.5 MB, free: 45.97 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002558/0.5563, allocations: 0.8462 MB / 406.4 MB, free: 45.66 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00304/0.5594, allocations: 1.309 MB / 407.7 MB, free: 44.8 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003049/0.5625, allocations: 1.026 MB / 408.7 MB, free: 44.39 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.733e-05/0.5626, allocations: 3.312 kB / 408.7 MB, free: 44.39 MB / 330.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.008567/0.5712, allocations: 2.727 MB / 411.5 MB, free: 43.33 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001166/0.5724, allocations: 5.489 MB / 416.9 MB, free: 37.46 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-05/0.5725, allocations: 14.94 kB / 417 MB, free: 37.46 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002935/0.5754, allocations: 0.663 MB / 417.6 MB, free: 37.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002731/0.5782, allocations: 358.2 kB / 418 MB, free: 37.21 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01385/0.5921, allocations: 8.512 MB / 426.5 MB, free: 31.31 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002469/0.5946, allocations: 113.8 kB / 426.6 MB, free: 31.28 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004199/0.5951, allocations: 70.95 kB / 426.7 MB, free: 31.26 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.5951, allocations: 8.188 kB / 426.7 MB, free: 31.26 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007089/0.6022, allocations: 2.628 MB / 429.3 MB, free: 30.15 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.75e-05/0.6024, allocations: 14.75 kB / 429.3 MB, free: 30.15 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002316/0.6047, allocations: 0.6697 MB / 430 MB, free: 29.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002521/0.6072, allocations: 352.9 kB / 430.3 MB, free: 29.72 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01312/0.6204, allocations: 8.552 MB / 438.9 MB, free: 22.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001561/0.622, allocations: 108 kB / 439 MB, free: 21.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002035/0.6223, allocations: 64 kB / 439 MB, free: 21.87 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (181): * Single equations (assignments): 177 * 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.002218/0.6245, allocations: 0.851 MB / 439.9 MB, free: 21.01 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005953/0.6251, allocations: 207.9 kB / 440.1 MB, free: 20.81 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006596/0.6317, allocations: 2.582 MB / 442.7 MB, free: 18.21 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.762e-05/0.6318, allocations: 12 kB / 442.7 MB, free: 18.2 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.6318, allocations: 8 kB / 442.7 MB, free: 18.19 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.202e-05/0.6318, allocations: 7.969 kB / 442.7 MB, free: 18.18 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01325/0.6451, allocations: 5.397 MB / 448.1 MB, free: 12.71 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.52e-05/0.6452, allocations: 4 kB / 448.1 MB, free: 12.71 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00181/0.647, allocations: 219.7 kB / 448.3 MB, free: 12.49 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002704/0.6498, allocations: 0.6983 MB / 449 MB, free: 11.78 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002322/0.65, allocations: 32 kB / 449.1 MB, free: 11.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01445/0.6645, allocations: 9.996 MB / 459 MB, free: 1.23 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/0.6645, allocations: 4 kB / 459.1 MB, free: 1.227 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01023/0.6748, allocations: 3.903 MB / 463 MB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001695/0.6765, allocations: 466.5 kB / 463.4 MB, free: 12.74 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006894/0.6773, allocations: 36.08 kB / 463.4 MB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002116/0.6794, allocations: 95.83 kB / 463.5 MB, free: 12.61 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005782/0.68, allocations: 129 kB / 463.7 MB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001688/0.6802, allocations: 36 kB / 463.7 MB, free: 12.45 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003183/0.6834, allocations: 1.205 MB / 464.9 MB, free: 11.25 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.22e-07/0.6835, allocations: 0 / 464.9 MB, free: 11.25 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005497/0.689, allocations: 0.9867 MB / 465.9 MB, free: 10.27 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],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 (110): * Single equations (assignments): 106 * 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.000639/0.6897, allocations: 163.7 kB / 466.1 MB, free: 10.1 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01239/0.7021, allocations: 4.511 MB / 470.6 MB, free: 5.477 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.246e-05/0.7021, allocations: 1 kB / 470.6 MB, free: 5.477 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004564/0.7067, allocations: 1.729 MB / 472.3 MB, free: 3.703 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004729/0.7115, allocations: 0.578 MB / 472.9 MB, free: 3.129 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01737/0.7289, allocations: 6.464 MB / 479.3 MB, free: 12.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003606/0.7326, allocations: 2.122 MB / 481.5 MB, free: 10.45 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009211/0.7336, allocations: 135.4 kB / 481.6 MB, free: 10.31 MB / 362.7 MB Notification: Performance of SimCode: time 1.463e-06/0.7336, allocations: 7.938 kB / 481.6 MB, free: 10.3 MB / 362.7 MB Notification: Performance of Templates: time 0.1568/0.8904, allocations: 81.76 MB / 0.5502 GB, free: 8.594 MB / 442.7 MB