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.824/1.824, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.068e-05/3.084e-05, allocations: 2.031 kB / 255.3 MB, free: 3.195 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07713/0.07718, allocations: 44.49 MB / 299.8 MB, free: 6.641 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3722/0.4494, allocations: 109.5 MB / 409.3 MB, free: 13.99 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000269/0.4497, allocations: 85.55 kB / 409.4 MB, free: 13.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2774/0.7271, allocations: 76.77 MB / 486.2 MB, free: 1.879 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.346e-06/0.7272, allocations: 0 / 486.2 MB, free: 1.879 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003036/0.7275, allocations: 79.94 kB / 486.3 MB, free: 1.801 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.01147/0.739, allocations: 3.198 MB / 489.5 MB, free: 14.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.739, allocations: 8.031 kB / 489.5 MB, free: 14.53 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004383/0.7434, allocations: 0.5975 MB / 490.1 MB, free: 13.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01114/0.7546, allocations: 3.135 MB / 493.2 MB, free: 10.74 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003292/0.755, allocations: 234.2 kB / 493.5 MB, free: 10.51 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001212/0.7562, allocations: 311.9 kB / 493.8 MB, free: 10.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01247/0.7687, allocations: 4.047 MB / 497.8 MB, free: 5.992 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001229/0.7689, allocations: 7.938 kB / 497.8 MB, free: 5.984 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006386/0.7695, allocations: 132 kB / 497.9 MB, free: 5.855 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002007/0.7697, allocations: 138.1 kB / 498.1 MB, free: 5.719 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0101/0.7799, allocations: 3.269 MB / 0.4896 GB, free: 2.441 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03378/0.8137, allocations: 13.81 MB / 0.5031 GB, free: 4.246 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2345/1.048, allocations: 5.844 MB / 0.5088 GB, free: 67.57 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003066/1.051, allocations: 1.325 MB / 0.5101 GB, free: 67.56 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008271/1.06, allocations: 3.182 MB / 0.5132 GB, free: 67.08 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.823e-05/1.06, allocations: 51.8 kB / 0.5132 GB, free: 67.04 MB / 394.7 MB Notification: Performance of pre-optimization done (n=137): time 5.199e-06/1.06, allocations: 1.25 kB / 0.5132 GB, free: 67.04 MB / 394.7 MB Notification: Performance of matching and sorting (n=141): time 0.01083/1.071, allocations: 4.532 MB / 0.5177 GB, free: 66.14 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.666e-05/1.071, allocations: 92.64 kB / 0.5178 GB, free: 66.05 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004062/1.075, allocations: 1.673 MB / 0.5194 GB, free: 65.82 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002873/1.075, allocations: 53.3 kB / 0.5194 GB, free: 65.79 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001028/1.076, allocations: 1.378 MB / 0.5208 GB, free: 65.25 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005548/1.077, allocations: 482.5 kB / 0.5212 GB, free: 65.01 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/1.077, allocations: 33.09 kB / 0.5213 GB, free: 65.01 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001555/1.077, allocations: 378.4 kB / 0.5216 GB, free: 64.7 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001805/1.079, allocations: 0.7167 MB / 0.5223 GB, free: 64.7 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001982/1.081, allocations: 1.244 MB / 0.5236 GB, free: 64.09 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002012/1.083, allocations: 0.9089 MB / 0.5244 GB, free: 64.07 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.868e-05/1.083, allocations: 5.562 kB / 0.5244 GB, free: 64.07 MB / 394.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.005624/1.089, allocations: 2.543 MB / 0.5269 GB, free: 63.84 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001249/1.09, allocations: 6.358 MB / 0.5331 GB, free: 57.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.551e-05/1.09, allocations: 19.47 kB / 0.5332 GB, free: 57.23 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001709/1.092, allocations: 0.5102 MB / 0.5337 GB, free: 57.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001972/1.094, allocations: 375.5 kB / 0.534 GB, free: 57.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008633/1.102, allocations: 7.232 MB / 0.5411 GB, free: 53.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002277/1.105, allocations: 101.5 kB / 0.5412 GB, free: 53.21 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002416/1.105, allocations: 73.16 kB / 0.5412 GB, free: 53.21 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/1.105, allocations: 2.031 kB / 0.5412 GB, free: 53.21 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005053/1.11, allocations: 2.471 MB / 0.5437 GB, free: 53.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.634e-05/1.11, allocations: 17.97 kB / 0.5437 GB, free: 53.04 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001437/1.112, allocations: 0.518 MB / 0.5442 GB, free: 53.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001739/1.113, allocations: 356.2 kB / 0.5445 GB, free: 53.01 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00796/1.121, allocations: 7.295 MB / 0.5516 GB, free: 49.03 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001256/1.123, allocations: 95.06 kB / 0.5517 GB, free: 49.03 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001637/1.123, allocations: 73.91 kB / 0.5518 GB, free: 49.03 MB / 394.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.0004759/1.123, allocations: 222.1 kB / 0.552 GB, free: 48.91 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005811/1.124, allocations: 210.6 kB / 0.5522 GB, free: 48.81 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005139/1.129, allocations: 2.424 MB / 0.5546 GB, free: 48.47 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.63e-05/1.129, allocations: 14.69 kB / 0.5546 GB, free: 48.47 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/1.129, allocations: 3.812 kB / 0.5546 GB, free: 48.47 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.481e-05/1.129, allocations: 7.688 kB / 0.5546 GB, free: 48.47 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01188/1.141, allocations: 5.291 MB / 0.5598 GB, free: 47.06 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.494e-05/1.141, allocations: 4.969 kB / 0.5598 GB, free: 47.06 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001225/1.142, allocations: 185.7 kB / 0.56 GB, free: 47.05 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002265/1.145, allocations: 0.6489 MB / 0.5606 GB, free: 46.83 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002289/1.145, allocations: 29.81 kB / 0.5606 GB, free: 46.81 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01342/1.158, allocations: 11.29 MB / 0.5716 GB, free: 37.95 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.105e-06/1.158, allocations: 0 / 0.5716 GB, free: 37.95 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006881/1.165, allocations: 3.653 MB / 0.5752 GB, free: 36.03 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001548/1.167, allocations: 470.6 kB / 0.5757 GB, free: 35.72 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006545/1.167, allocations: 31.64 kB / 0.5757 GB, free: 35.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001671/1.169, allocations: 87.22 kB / 0.5758 GB, free: 35.68 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003618/1.17, allocations: 110.7 kB / 0.5759 GB, free: 35.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001331/1.17, allocations: 46.38 kB / 0.5759 GB, free: 35.65 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002487/1.172, allocations: 1.279 MB / 0.5772 GB, free: 35.11 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.04e-07/1.172, allocations: 0 / 0.5772 GB, free: 35.11 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005861/1.178, allocations: 1.101 MB / 0.5783 GB, free: 35.01 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.0009247/1.179, allocations: 0.4975 MB / 0.5787 GB, free: 34.86 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007747/1.187, allocations: 4.071 MB / 0.5827 GB, free: 32.79 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.056e-05/1.187, allocations: 0.875 kB / 0.5827 GB, free: 32.79 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003431/1.19, allocations: 1.749 MB / 0.5844 GB, free: 31.74 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003947/1.194, allocations: 0.5943 MB / 0.585 GB, free: 31.59 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01196/1.206, allocations: 4.721 MB / 0.5896 GB, free: 29.57 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002821/1.209, allocations: 2.341 MB / 0.5919 GB, free: 28.53 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007182/1.21, allocations: 140.9 kB / 0.592 GB, free: 28.52 MB / 394.7 MB Notification: Performance of SimCode: time 1.725e-06/1.21, allocations: 0 / 0.592 GB, free: 28.52 MB / 394.7 MB Notification: Performance of Templates: time 0.3767/1.587, allocations: 106.1 MB / 0.6956 GB, free: 83.57 MB / 410.7 MB