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 1.958/1.958, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.994e-05/3.003e-05, allocations: 4 kB / 292.1 MB, free: 8.852 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09112/0.09118, allocations: 50.42 MB / 342.6 MB, free: 6.41 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4003/0.4915, allocations: 110.6 MB / 453.2 MB, free: 15.94 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002446/0.4918, allocations: 85.42 kB / 453.3 MB, free: 15.89 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2114/0.7032, allocations: 55.22 MB / 0.4966 GB, free: 12.76 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.7032, allocations: 4 kB / 0.4966 GB, free: 12.75 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002499/0.7035, allocations: 71.94 kB / 0.4967 GB, free: 12.68 MB / 426.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.006904/0.7104, allocations: 2.648 MB / 0.4992 GB, free: 9.973 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.7105, allocations: 8.031 kB / 0.4993 GB, free: 9.965 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001276/0.7117, allocations: 364 kB / 0.4996 GB, free: 9.605 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004901/0.7167, allocations: 1.929 MB / 0.5015 GB, free: 7.621 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002088/0.7169, allocations: 185 kB / 0.5017 GB, free: 7.438 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005404/0.7175, allocations: 259.9 kB / 0.5019 GB, free: 7.184 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007485/0.7249, allocations: 3.292 MB / 0.5051 GB, free: 3.723 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.64e-05/0.7251, allocations: 15.84 kB / 0.5051 GB, free: 3.707 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003715/0.7255, allocations: 108.3 kB / 0.5052 GB, free: 3.602 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001587/0.7256, allocations: 112.8 kB / 0.5053 GB, free: 3.488 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006561/0.7322, allocations: 2.665 MB / 0.508 GB, free: 0.8164 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02325/0.7555, allocations: 10.91 MB / 0.5186 GB, free: 5.613 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003945/0.7595, allocations: 2.386 MB / 0.5209 GB, free: 3.066 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002146/0.7616, allocations: 1.056 MB / 0.522 GB, free: 2.012 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003794/0.762, allocations: 138.4 kB / 0.5221 GB, free: 1.859 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.85e-05/0.7621, allocations: 55.81 kB / 0.5222 GB, free: 1.797 MB / 442.7 MB Notification: Performance of pre-optimization done (n=136): time 4.865e-06/0.7621, allocations: 0 / 0.5222 GB, free: 1.797 MB / 442.7 MB Notification: Performance of matching and sorting (n=150): time 0.257/1.019, allocations: 5.476 MB / 0.5275 GB, free: 109.4 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/1.019, allocations: 93.2 kB / 0.5276 GB, free: 109.3 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003146/1.022, allocations: 1.562 MB / 0.5291 GB, free: 109.2 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002439/1.023, allocations: 52.14 kB / 0.5292 GB, free: 109.1 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007764/1.023, allocations: 1.148 MB / 0.5303 GB, free: 108.7 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004939/1.024, allocations: 0.4963 MB / 0.5308 GB, free: 108.4 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001453/1.024, allocations: 37.56 kB / 0.5308 GB, free: 108.4 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001498/1.024, allocations: 382.3 kB / 0.5312 GB, free: 108.1 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001805/1.026, allocations: 0.8223 MB / 0.532 GB, free: 108.1 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002066/1.028, allocations: 1.267 MB / 0.5332 GB, free: 107.6 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002098/1.03, allocations: 1.004 MB / 0.5342 GB, free: 107.6 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-05/1.03, allocations: 7.625 kB / 0.5342 GB, free: 107.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.00601/1.036, allocations: 2.64 MB / 0.5368 GB, free: 107.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001045/1.037, allocations: 5.404 MB / 0.5421 GB, free: 101.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.438e-05/1.037, allocations: 13.95 kB / 0.5421 GB, free: 101.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002134/1.04, allocations: 0.6657 MB / 0.5427 GB, free: 101.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001979/1.042, allocations: 375.9 kB / 0.5431 GB, free: 101.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01064/1.052, allocations: 8.266 MB / 0.5511 GB, free: 97.79 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002095/1.054, allocations: 114 kB / 0.5513 GB, free: 97.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002093/1.055, allocations: 71.23 kB / 0.5513 GB, free: 97.79 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/1.055, allocations: 3.156 kB / 0.5513 GB, free: 97.79 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005248/1.06, allocations: 2.577 MB / 0.5538 GB, free: 97.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.391e-05/1.06, allocations: 11.62 kB / 0.5539 GB, free: 97.71 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001862/1.062, allocations: 0.6574 MB / 0.5545 GB, free: 97.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001907/1.064, allocations: 364.4 kB / 0.5548 GB, free: 97.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01003/1.074, allocations: 8.337 MB / 0.563 GB, free: 92.65 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001243/1.075, allocations: 100.9 kB / 0.5631 GB, free: 92.62 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001875/1.075, allocations: 72.09 kB / 0.5632 GB, free: 92.61 MB / 442.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.0005022/1.076, allocations: 217.3 kB / 0.5634 GB, free: 92.45 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005731/1.076, allocations: 200.9 kB / 0.5636 GB, free: 92.35 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005215/1.082, allocations: 2.566 MB / 0.5661 GB, free: 91.36 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-05/1.082, allocations: 15.12 kB / 0.5661 GB, free: 91.36 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.738e-06/1.082, allocations: 3.875 kB / 0.5661 GB, free: 91.36 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.755e-05/1.082, allocations: 7.219 kB / 0.5661 GB, free: 91.36 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01085/1.093, allocations: 5.353 MB / 0.5713 GB, free: 89.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.024e-05/1.093, allocations: 0 / 0.5713 GB, free: 89.22 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001404/1.094, allocations: 234.8 kB / 0.5715 GB, free: 89.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002275/1.096, allocations: 0.69 MB / 0.5722 GB, free: 89 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000142/1.097, allocations: 36.62 kB / 0.5722 GB, free: 88.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01152/1.108, allocations: 9.768 MB / 0.5818 GB, free: 81.88 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/1.108, allocations: 6.375 kB / 0.5818 GB, free: 81.88 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006569/1.115, allocations: 3.86 MB / 0.5856 GB, free: 80.1 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001272/1.116, allocations: 470.7 kB / 0.586 GB, free: 79.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004308/1.116, allocations: 41.67 kB / 0.586 GB, free: 79.77 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001477/1.118, allocations: 93.91 kB / 0.5861 GB, free: 79.76 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003322/1.118, allocations: 125 kB / 0.5863 GB, free: 79.74 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001407/1.118, allocations: 43.39 kB / 0.5863 GB, free: 79.73 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002185/1.121, allocations: 1.197 MB / 0.5875 GB, free: 79.27 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.82e-07/1.121, allocations: 2.25 kB / 0.5875 GB, free: 79.27 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003945/1.125, allocations: 1.039 MB / 0.5885 GB, free: 79.17 MB / 442.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.0007025/1.125, allocations: 435 kB / 0.5889 GB, free: 79.04 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007101/1.133, allocations: 4.329 MB / 0.5931 GB, free: 76.89 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.944e-06/1.133, allocations: 3.438 kB / 0.5931 GB, free: 76.89 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002616/1.135, allocations: 1.664 MB / 0.5948 GB, free: 75.98 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003094/1.138, allocations: 0.583 MB / 0.5953 GB, free: 75.82 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00967/1.148, allocations: 4.511 MB / 0.5997 GB, free: 73.92 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002117/1.15, allocations: 2.12 MB / 0.6018 GB, free: 72.94 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007431/1.151, allocations: 139.5 kB / 0.6019 GB, free: 72.93 MB / 442.7 MB Notification: Performance of SimCode: time 1.719e-06/1.151, allocations: 7.5 kB / 0.6019 GB, free: 72.93 MB / 442.7 MB Notification: Performance of Templates: time 0.09083/1.242, allocations: 82.9 MB / 0.6829 GB, free: 0.9961 MB / 442.7 MB