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 1.924/1.924, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.604e-05/2.648e-05, allocations: 0 / 292.2 MB, free: 8.781 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0919/0.09195, allocations: 50.41 MB / 342.6 MB, free: 6.352 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4172/0.5092, allocations: 116.8 MB / 459.4 MB, free: 9.934 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002978/0.5095, allocations: 97.19 kB / 459.5 MB, free: 9.883 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2814/0.791, allocations: 77.23 MB / 0.5241 GB, free: 180 kB / 442.7 MB Notification: Performance of FrontEnd: time 2.373e-06/0.791, allocations: 3.938 kB / 0.5241 GB, free: 176 kB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002917/0.7913, allocations: 83.92 kB / 0.5242 GB, free: 92 kB / 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.2628/1.054, allocations: 3.197 MB / 0.5274 GB, free: 94.18 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/1.054, allocations: 10.22 kB / 0.5274 GB, free: 94.18 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004828/1.059, allocations: 0.5951 MB / 0.5279 GB, free: 93.99 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01086/1.07, allocations: 3.136 MB / 0.531 GB, free: 93.52 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003405/1.07, allocations: 236.4 kB / 0.5312 GB, free: 93.52 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001186/1.071, allocations: 308.6 kB / 0.5315 GB, free: 93.52 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01217/1.084, allocations: 4.011 MB / 0.5354 GB, free: 93.04 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000144/1.084, allocations: 9.547 kB / 0.5355 GB, free: 93.04 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007784/1.085, allocations: 133.2 kB / 0.5356 GB, free: 93.04 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001969/1.085, allocations: 145.1 kB / 0.5357 GB, free: 93.03 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009566/1.094, allocations: 3.216 MB / 0.5389 GB, free: 93.02 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02984/1.124, allocations: 13.79 MB / 0.5523 GB, free: 89.58 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006223/1.131, allocations: 5.837 MB / 0.558 GB, free: 85.4 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002628/1.133, allocations: 1.336 MB / 0.5593 GB, free: 85.38 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007079/1.14, allocations: 3.185 MB / 0.5624 GB, free: 84.63 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.124e-05/1.14, allocations: 52.06 kB / 0.5625 GB, free: 84.58 MB / 442.7 MB Notification: Performance of pre-optimization done (n=137): time 4.913e-06/1.14, allocations: 2.438 kB / 0.5625 GB, free: 84.58 MB / 442.7 MB Notification: Performance of matching and sorting (n=141): time 0.009969/1.15, allocations: 4.525 MB / 0.5669 GB, free: 82.25 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/1.151, allocations: 93.58 kB / 0.567 GB, free: 82.15 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003267/1.154, allocations: 1.678 MB / 0.5686 GB, free: 81.45 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002676/1.154, allocations: 47.67 kB / 0.5687 GB, free: 81.4 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008072/1.155, allocations: 1.389 MB / 0.57 GB, free: 80.28 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004242/1.155, allocations: 477.7 kB / 0.5705 GB, free: 79.92 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001287/1.156, allocations: 31.94 kB / 0.5705 GB, free: 79.89 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001334/1.156, allocations: 387 kB / 0.5709 GB, free: 79.55 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001488/1.157, allocations: 0.7162 MB / 0.5716 GB, free: 79.27 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001721/1.159, allocations: 1.235 MB / 0.5728 GB, free: 78.33 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001813/1.161, allocations: 0.9103 MB / 0.5737 GB, free: 78 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.336e-05/1.161, allocations: 3.656 kB / 0.5737 GB, free: 78 MB / 442.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.005363/1.166, allocations: 2.502 MB / 0.5761 GB, free: 77.04 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001253/1.167, allocations: 6.36 MB / 0.5823 GB, free: 70.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.435e-05/1.168, allocations: 17.28 kB / 0.5824 GB, free: 70.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001602/1.169, allocations: 0.5108 MB / 0.5829 GB, free: 70.14 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00188/1.171, allocations: 363.1 kB / 0.5832 GB, free: 70.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00876/1.18, allocations: 7.237 MB / 0.5903 GB, free: 64.68 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002318/1.182, allocations: 95 kB / 0.5904 GB, free: 64.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002649/1.182, allocations: 83.05 kB / 0.5904 GB, free: 64.64 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.228e-05/1.183, allocations: 5.438 kB / 0.5905 GB, free: 64.64 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00505/1.188, allocations: 2.419 MB / 0.5928 GB, free: 63.71 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.269e-05/1.188, allocations: 18.41 kB / 0.5928 GB, free: 63.71 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001495/1.189, allocations: 0.5107 MB / 0.5933 GB, free: 63.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001803/1.191, allocations: 355.7 kB / 0.5937 GB, free: 63.53 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008621/1.2, allocations: 7.3 MB / 0.6008 GB, free: 58.03 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00134/1.201, allocations: 87.59 kB / 0.6009 GB, free: 58 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001835/1.201, allocations: 77.73 kB / 0.601 GB, free: 57.98 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.0004743/1.202, allocations: 214.5 kB / 0.6012 GB, free: 57.82 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005788/1.202, allocations: 207.6 kB / 0.6014 GB, free: 57.71 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005162/1.207, allocations: 2.438 MB / 0.6037 GB, free: 56.57 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.869e-05/1.208, allocations: 18.81 kB / 0.6038 GB, free: 56.57 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/1.208, allocations: 2.281 kB / 0.6038 GB, free: 56.57 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.566e-05/1.208, allocations: 7.547 kB / 0.6038 GB, free: 56.57 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01123/1.219, allocations: 5.272 MB / 0.6089 GB, free: 54.14 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.07e-05/1.219, allocations: 0 / 0.6089 GB, free: 54.14 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001103/1.22, allocations: 180.4 kB / 0.6091 GB, free: 54.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002105/1.222, allocations: 0.6511 MB / 0.6097 GB, free: 53.89 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002052/1.222, allocations: 31.25 kB / 0.6098 GB, free: 53.87 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01357/1.236, allocations: 11.29 MB / 0.6208 GB, free: 44.92 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/1.236, allocations: 6.719 kB / 0.6208 GB, free: 44.92 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0069/1.243, allocations: 3.675 MB / 0.6244 GB, free: 42.97 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001437/1.244, allocations: 467.2 kB / 0.6248 GB, free: 42.66 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004273/1.245, allocations: 34.23 kB / 0.6248 GB, free: 42.63 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001356/1.246, allocations: 81.62 kB / 0.6249 GB, free: 42.61 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003359/1.247, allocations: 117.1 kB / 0.625 GB, free: 42.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000131/1.247, allocations: 34.88 kB / 0.6251 GB, free: 42.59 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002503/1.249, allocations: 1.281 MB / 0.6263 GB, free: 42.04 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.096e-06/1.249, allocations: 3.75 kB / 0.6263 GB, free: 42.04 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005717/1.255, allocations: 1.102 MB / 0.6274 GB, free: 41.94 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.0009048/1.256, allocations: 0.5308 MB / 0.6279 GB, free: 41.73 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007419/1.263, allocations: 3.973 MB / 0.6318 GB, free: 38.89 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.918e-06/1.263, allocations: 4 kB / 0.6318 GB, free: 38.89 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003009/1.266, allocations: 1.687 MB / 0.6335 GB, free: 37.29 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003557/1.27, allocations: 0.5904 MB / 0.634 GB, free: 36.84 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01117/1.281, allocations: 4.638 MB / 0.6386 GB, free: 32.65 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002627/1.284, allocations: 2.34 MB / 0.6408 GB, free: 30.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007282/1.285, allocations: 142.4 kB / 0.641 GB, free: 30.67 MB / 442.7 MB Notification: Performance of SimCode: time 1.643e-06/1.285, allocations: 0 / 0.641 GB, free: 30.67 MB / 442.7 MB Notification: Performance of Templates: time 0.398/1.683, allocations: 106 MB / 0.7444 GB, free: 96.05 MB / 458.7 MB