Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadModel(Modelica): time 2.082/2.082, allocations: 224.7 MB / 241.1 MB, free: 1.672 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.099e-05/3.088e-05, allocations: 7.984 kB / 294.6 MB, free: 11.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.109, allocations: 50.4 MB / 345 MB, free: 8.93 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01534/0.1244, allocations: 8.947 MB / 353.9 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008894/0.1333, allocations: 3.149 MB / 357.1 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0029/0.1363, allocations: 79.69 kB / 357.2 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003819/0.1402, allocations: 0.6215 MB / 357.8 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005071/0.1453, allocations: 0.7437 MB / 358.5 MB, free: 11.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002283/0.1477, allocations: 283.6 kB / 358.8 MB, free: 11.06 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.007034/0.1547, allocations: 1.781 MB / 360.6 MB, free: 9.281 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005297/0.1601, allocations: 1.501 MB / 362.1 MB, free: 7.762 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00318/0.1634, allocations: 0.9389 MB / 363 MB, free: 6.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004284/0.1677, allocations: 1.203 MB / 364.2 MB, free: 5.613 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002052/0.1698, allocations: 187.9 kB / 364.4 MB, free: 5.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001285/0.1712, allocations: 124 kB / 364.5 MB, free: 5.309 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002538/0.1738, allocations: 0.7943 MB / 365.3 MB, free: 4.512 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002227/0.1761, allocations: 304 kB / 365.6 MB, free: 4.215 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0104/0.1866, allocations: 4.383 MB / 370 MB, free: 15.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.1866, allocations: 0 / 370 MB, free: 15.82 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.637e-06/0.1867, allocations: 0 / 370 MB, free: 15.82 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002171/0.1869, allocations: 0 / 370 MB, free: 15.82 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.01413/0.2011, allocations: 2.944 MB / 372.9 MB, free: 12.81 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.548e-05/0.2011, allocations: 8.031 kB / 372.9 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003048/0.2042, allocations: 391.6 kB / 373.3 MB, free: 12.42 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009402/0.2137, allocations: 1.946 MB / 375.3 MB, free: 10.42 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004834/0.2142, allocations: 217.7 kB / 375.5 MB, free: 10.2 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001511/0.2158, allocations: 283.9 kB / 375.8 MB, free: 9.926 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01852/0.2344, allocations: 3.822 MB / 379.6 MB, free: 6.016 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002158/0.2346, allocations: 3.906 kB / 379.6 MB, free: 6.012 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001146/0.2358, allocations: 120 kB / 379.7 MB, free: 5.895 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000304/0.2362, allocations: 121.5 kB / 379.8 MB, free: 5.773 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01637/0.2526, allocations: 3.234 MB / 383.1 MB, free: 2.527 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05219/0.3048, allocations: 11.96 MB / 395 MB, free: 6.258 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008419/0.3133, allocations: 3.654 MB / 398.7 MB, free: 2.195 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006768/0.314, allocations: 126.4 kB / 398.8 MB, free: 2.055 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.029e-05/0.3142, allocations: 47.88 kB / 398.8 MB, free: 2 MB / 330.7 MB Notification: Performance of pre-optimization done (n=136): time 7.354e-06/0.3142, allocations: 4 kB / 398.8 MB, free: 1.996 MB / 330.7 MB Notification: Performance of matching and sorting (n=151): time 0.3374/0.6516, allocations: 7.455 MB / 406.3 MB, free: 45.84 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.275e-05/0.6517, allocations: 67.44 kB / 406.4 MB, free: 45.77 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00531/0.6571, allocations: 1.811 MB / 408.2 MB, free: 45.07 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003287/0.6574, allocations: 52.64 kB / 408.2 MB, free: 45.02 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001854/0.6593, allocations: 1.293 MB / 409.5 MB, free: 43.97 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007793/0.6602, allocations: 0.5091 MB / 410 MB, free: 43.57 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001867/0.6604, allocations: 38.88 kB / 410.1 MB, free: 43.54 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.6605, allocations: 390 kB / 410.5 MB, free: 43.2 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002527/0.6631, allocations: 0.8694 MB / 411.3 MB, free: 42.9 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002961/0.6661, allocations: 1.359 MB / 412.7 MB, free: 42.01 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002966/0.6691, allocations: 1.095 MB / 413.8 MB, free: 41.57 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.872e-05/0.6692, allocations: 8 kB / 413.8 MB, free: 41.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00858/0.6778, allocations: 3.119 MB / 416.9 MB, free: 40.28 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.894e-05/0.6779, allocations: 8.406 kB / 416.9 MB, free: 40.28 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.218e-05/0.6779, allocations: 15.81 kB / 416.9 MB, free: 40.28 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003718/0.6816, allocations: 0.8323 MB / 417.8 MB, free: 40.02 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002555/0.6842, allocations: 355.3 kB / 418.1 MB, free: 39.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02057/0.7049, allocations: 18.93 MB / 437 MB, free: 22.84 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002583/0.7075, allocations: 98.64 kB / 437.1 MB, free: 22.79 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003687/0.7079, allocations: 72.41 kB / 437.2 MB, free: 22.72 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (197): * Single equations (assignments): 186 * 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: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(2,100.0%) 9,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002363/0.7103, allocations: 0.9374 MB / 438.1 MB, free: 21.77 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007171/0.711, allocations: 217.1 kB / 438.3 MB, free: 21.56 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006722/0.7177, allocations: 2.619 MB / 441 MB, free: 18.89 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.287e-05/0.7178, allocations: 19.98 kB / 441 MB, free: 18.87 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.816e-05/0.7179, allocations: 10.16 kB / 441 MB, free: 18.86 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.73e-05/0.7179, allocations: 3.984 kB / 441 MB, free: 18.86 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01512/0.733, allocations: 5.876 MB / 446.9 MB, free: 12.83 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.397e-05/0.7331, allocations: 4 kB / 446.9 MB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001489/0.7346, allocations: 203.7 kB / 447.1 MB, free: 12.62 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002833/0.7374, allocations: 0.7133 MB / 447.8 MB, free: 11.88 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001521/0.7376, allocations: 39.94 kB / 447.8 MB, free: 11.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0186/0.7562, allocations: 16.8 MB / 464.6 MB, free: 9.719 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.054e-05/0.7563, allocations: 7.984 kB / 464.6 MB, free: 9.711 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01003/0.7663, allocations: 4.047 MB / 468.7 MB, free: 5.414 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00171/0.7681, allocations: 486.3 kB / 469.2 MB, free: 4.918 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005702/0.7687, allocations: 35.98 kB / 469.2 MB, free: 4.883 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001989/0.7707, allocations: 115.6 kB / 469.3 MB, free: 4.773 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004938/0.7712, allocations: 141 kB / 469.4 MB, free: 4.637 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001666/0.7714, allocations: 44.75 kB / 469.5 MB, free: 4.594 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003313/0.7747, allocations: 1.384 MB / 470.9 MB, free: 3.188 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.7747, allocations: 0 / 470.9 MB, free: 3.188 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003725/0.7785, allocations: 0.6552 MB / 471.5 MB, free: 2.535 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (121): * Single equations (assignments): 111 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005178/0.779, allocations: 173.6 kB / 471.7 MB, free: 2.359 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007895/0.7869, allocations: 3.442 MB / 475.1 MB, free: 14.78 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.041e-05/0.787, allocations: 0 / 475.1 MB, free: 14.78 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004644/0.7917, allocations: 2.193 MB / 477.3 MB, free: 12.46 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005152/0.7969, allocations: 0.6135 MB / 478 MB, free: 11.85 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0157/0.8126, allocations: 6.747 MB / 484.7 MB, free: 5.027 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003667/0.8164, allocations: 2.299 MB / 487 MB, free: 2.699 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009136/0.8173, allocations: 147.4 kB / 487.1 MB, free: 2.555 MB / 362.7 MB Notification: Performance of SimCode: time 1.453e-06/0.8173, allocations: 0 / 487.1 MB, free: 2.555 MB / 362.7 MB Notification: Performance of Templates: time 0.6173/1.435, allocations: 177.2 MB / 0.6488 GB, free: 66.22 MB / 442.7 MB