Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking") Notification: Performance of loadModel(Modelica): time 1.903/1.903, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.278e-05/3.289e-05, allocations: 7.938 kB / 249.6 MB, free: 15.28 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2627, allocations: 44.5 MB / 294.1 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2137/0.4764, allocations: 108.8 MB / 403 MB, free: 5.059 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002946/0.4768, allocations: 91.94 kB / 403.1 MB, free: 4.969 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4832/0.96, allocations: 75.72 MB / 478.8 MB, free: 70.79 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.12e-06/0.96, allocations: 0 / 478.8 MB, free: 70.79 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000342/0.9604, allocations: 95.78 kB / 478.9 MB, free: 70.7 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 817 * Number of variables: 817 Notification: Performance of Generate backend data structure: time 0.01064/0.9711, allocations: 3.18 MB / 482.1 MB, free: 67.46 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.9711, allocations: 12.03 kB / 482.1 MB, free: 67.45 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004203/0.9753, allocations: 0.5975 MB / 482.7 MB, free: 66.85 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01112/0.9865, allocations: 3.126 MB / 485.8 MB, free: 63.74 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002202/0.9868, allocations: 108 kB / 485.9 MB, free: 63.63 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001178/0.988, allocations: 180 kB / 486.1 MB, free: 63.46 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008534/0.9966, allocations: 3.066 MB / 489.1 MB, free: 60.39 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01097/1.008, allocations: 3.612 MB / 492.7 MB, free: 56.61 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001573/1.008, allocations: 7.906 kB / 492.8 MB, free: 56.61 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009084/1.009, allocations: 7.938 kB / 492.8 MB, free: 56.6 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001627/1.009, allocations: 142.1 kB / 492.9 MB, free: 56.46 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02841/1.037, allocations: 13.2 MB / 0.4942 GB, free: 43.01 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005585/1.043, allocations: 5.796 MB / 0.4999 GB, free: 36.51 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002602/1.046, allocations: 1.27 MB / 0.5011 GB, free: 35.24 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008027/1.054, allocations: 3.078 MB / 0.5041 GB, free: 32.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.688e-05/1.054, allocations: 51.81 kB / 0.5042 GB, free: 32.06 MB / 362.7 MB Notification: Performance of pre-optimization done (n=137): time 5.208e-06/1.054, allocations: 4 kB / 0.5042 GB, free: 32.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=141): time 0.01106/1.065, allocations: 4.499 MB / 0.5086 GB, free: 27.46 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.358e-05/1.065, allocations: 90.42 kB / 0.5087 GB, free: 27.35 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002669/1.068, allocations: 1.397 MB / 0.51 GB, free: 25.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002652/1.068, allocations: 25.7 kB / 0.5101 GB, free: 25.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008226/1.069, allocations: 1.395 MB / 0.5114 GB, free: 24.52 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004791/1.069, allocations: 469 kB / 0.5119 GB, free: 24.05 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/1.069, allocations: 0 / 0.5119 GB, free: 24.05 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001283/1.07, allocations: 382.8 kB / 0.5122 GB, free: 23.67 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001256/1.071, allocations: 0.6833 MB / 0.5129 GB, free: 22.99 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001552/1.072, allocations: 1.192 MB / 0.5141 GB, free: 21.56 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002251/1.075, allocations: 0.9508 MB / 0.515 GB, free: 20.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.769e-05/1.075, allocations: 4 kB / 0.515 GB, free: 20.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.005442/1.08, allocations: 2.446 MB / 0.5174 GB, free: 18.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001299/1.081, allocations: 6.351 MB / 0.5236 GB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-05/1.082, allocations: 20 kB / 0.5236 GB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001605/1.083, allocations: 0.499 MB / 0.5241 GB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001912/1.085, allocations: 367.4 kB / 0.5245 GB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008044/1.093, allocations: 6.992 MB / 0.5313 GB, free: 3.051 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002168/1.095, allocations: 67.77 kB / 0.5313 GB, free: 2.984 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003776/1.096, allocations: 76 kB / 0.5314 GB, free: 2.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/1.096, allocations: 12.05 kB / 0.5314 GB, free: 2.898 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005625/1.102, allocations: 2.32 MB / 0.5337 GB, free: 0.5469 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.635e-05/1.102, allocations: 16 kB / 0.5337 GB, free: 0.5312 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001493/1.103, allocations: 0.5074 MB / 0.5342 GB, free: 12 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002045/1.105, allocations: 367.4 kB / 0.5346 GB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01078/1.116, allocations: 7.019 MB / 0.5414 GB, free: 8.289 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001397/1.117, allocations: 51.84 kB / 0.5415 GB, free: 8.238 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004355/1.118, allocations: 75.98 kB / 0.5415 GB, free: 8.164 MB / 378.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.0007193/1.119, allocations: 164.6 kB / 0.5417 GB, free: 7.996 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006273/1.119, allocations: 193.6 kB / 0.5419 GB, free: 7.805 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006302/1.126, allocations: 2.352 MB / 0.5442 GB, free: 5.383 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.629e-05/1.126, allocations: 16 kB / 0.5442 GB, free: 5.367 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.334e-05/1.126, allocations: 4 kB / 0.5442 GB, free: 5.363 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.793e-05/1.126, allocations: 11.95 kB / 0.5442 GB, free: 5.352 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01276/1.139, allocations: 4.816 MB / 0.5489 GB, free: 444 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-05/1.139, allocations: 4 kB / 0.5489 GB, free: 440 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/1.14, allocations: 179.7 kB / 0.5491 GB, free: 260 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002383/1.142, allocations: 0.6382 MB / 0.5497 GB, free: 15.6 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002557/1.143, allocations: 15.98 kB / 0.5497 GB, free: 15.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0166/1.159, allocations: 10.88 MB / 0.5603 GB, free: 4.145 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.275e-06/1.159, allocations: 4.031 kB / 0.5603 GB, free: 4.141 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008244/1.167, allocations: 3.581 MB / 0.5638 GB, free: 436 kB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2386/1.406, allocations: 441.7 kB / 0.5643 GB, free: 93.97 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007872/1.407, allocations: 6 kB / 0.5643 GB, free: 93.97 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001779/1.409, allocations: 60.05 kB / 0.5643 GB, free: 93.97 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005361/1.409, allocations: 116.5 kB / 0.5644 GB, free: 93.97 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002119/1.41, allocations: 39.2 kB / 0.5645 GB, free: 93.97 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002903/1.412, allocations: 1.047 MB / 0.5655 GB, free: 93.86 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.398e-06/1.413, allocations: 0 / 0.5655 GB, free: 93.86 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.006485/1.419, allocations: 0.9732 MB / 0.5664 GB, free: 93.86 MB / 394.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.001034/1.42, allocations: 421.7 kB / 0.5668 GB, free: 93.77 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008469/1.429, allocations: 3.871 MB / 0.5706 GB, free: 92.91 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.288e-05/1.429, allocations: 0.7188 kB / 0.5706 GB, free: 92.91 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00364/1.432, allocations: 1.671 MB / 0.5723 GB, free: 92.35 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003597/1.436, allocations: 0.4951 MB / 0.5727 GB, free: 92.34 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01252/1.449, allocations: 4.6 MB / 0.5772 GB, free: 91.28 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003347/1.452, allocations: 2.34 MB / 0.5795 GB, free: 90.53 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007448/1.453, allocations: 141.2 kB / 0.5797 GB, free: 90.53 MB / 394.7 MB Notification: Performance of SimCode: time 2.841e-06/1.453, allocations: 1.875 kB / 0.5797 GB, free: 90.53 MB / 394.7 MB Notification: Performance of Templates: time 0.1358/1.589, allocations: 104.2 MB / 0.6814 GB, free: 15.46 MB / 394.7 MB