Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 2.167/2.167, allocations: 194.9 MB / 211.2 MB, free: 8.355 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.516e-05/2.521e-05, allocations: 4 kB / 258.8 MB, free: 8.699 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3055/0.3055, allocations: 44.5 MB / 303.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.02151/0.3271, allocations: 11.94 MB / 315.2 MB, free: 1.734 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0125/0.3396, allocations: 4.37 MB / 319.6 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003022/0.3427, allocations: 119.6 kB / 319.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003625/0.3464, allocations: 0.7923 MB / 320.5 MB, free: 12.44 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006295/0.3527, allocations: 1.18 MB / 321.7 MB, free: 11.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003333/0.3561, allocations: 0.6518 MB / 322.3 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00623/0.3624, allocations: 1.939 MB / 324.3 MB, free: 8.664 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003726/0.3661, allocations: 1.744 MB / 326 MB, free: 6.902 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00225/0.3684, allocations: 0.935 MB / 327 MB, free: 5.965 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003061/0.3715, allocations: 1.254 MB / 328.2 MB, free: 4.707 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001742/0.3733, allocations: 275.8 kB / 328.5 MB, free: 4.438 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007051/0.3741, allocations: 120 kB / 328.6 MB, free: 4.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001033/0.3751, allocations: 0.6812 MB / 329.3 MB, free: 3.637 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001136/0.3763, allocations: 272 kB / 329.5 MB, free: 3.371 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008624/0.3849, allocations: 4.99 MB / 334.5 MB, free: 14.37 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.385, allocations: 0 / 334.5 MB, free: 14.37 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.647e-06/0.385, allocations: 4 kB / 334.5 MB, free: 14.36 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0002158/0.3852, allocations: 0 / 334.5 MB, free: 14.36 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 823 * Number of variables: 823 Notification: Performance of Generate backend data structure: time 0.01272/0.398, allocations: 3.286 MB / 337.8 MB, free: 11.01 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.439e-05/0.398, allocations: 15.97 kB / 337.8 MB, free: 10.99 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004958/0.403, allocations: 0.6202 MB / 338.5 MB, free: 10.37 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006394/0.4095, allocations: 2.046 MB / 340.5 MB, free: 8.266 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003121/0.4098, allocations: 234.3 kB / 340.7 MB, free: 8.035 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001088/0.4109, allocations: 311.9 kB / 341 MB, free: 7.73 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01287/0.4238, allocations: 3.972 MB / 345 MB, free: 3.695 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001183/0.424, allocations: 4 kB / 345 MB, free: 3.691 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004705/0.4245, allocations: 128 kB / 345.1 MB, free: 3.566 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002532/0.4247, allocations: 146.2 kB / 345.3 MB, free: 3.422 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0116/0.4364, allocations: 3.331 MB / 348.6 MB, free: 84 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04575/0.4822, allocations: 13.27 MB / 361.9 MB, free: 2.363 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007244/0.4895, allocations: 3.905 MB / 365.8 MB, free: 13.95 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008173/0.4977, allocations: 2.634 MB / 368.4 MB, free: 11.23 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.618e-05/0.4978, allocations: 47.56 kB / 368.5 MB, free: 11.17 MB / 314.7 MB Notification: Performance of pre-optimization done (n=111): time 4.599e-06/0.4979, allocations: 4 kB / 368.5 MB, free: 11.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=145): time 0.02099/0.5189, allocations: 5.984 MB / 374.5 MB, free: 5.09 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.49e-05/0.519, allocations: 72.72 kB / 374.5 MB, free: 5.008 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00397/0.523, allocations: 1.589 MB / 376.1 MB, free: 3.379 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002959/0.5233, allocations: 49.7 kB / 376.2 MB, free: 3.324 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00147/0.5248, allocations: 1.434 MB / 377.6 MB, free: 1.875 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007671/0.5256, allocations: 0.4929 MB / 378.1 MB, free: 1.375 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001634/0.5258, allocations: 39.94 kB / 378.1 MB, free: 1.336 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002761/0.526, allocations: 382.8 kB / 378.5 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00224/0.5283, allocations: 0.7613 MB / 379.3 MB, free: 196 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002792/0.5311, allocations: 1.363 MB / 380.6 MB, free: 14.56 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002916/0.5341, allocations: 1.006 MB / 381.6 MB, free: 13.55 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.242e-05/0.5342, allocations: 4 kB / 381.6 MB, free: 13.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=237) (initialization): time 0.007161/0.5414, allocations: 2.339 MB / 384 MB, free: 11.2 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.767e-05/0.5415, allocations: 12 kB / 384 MB, free: 11.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.535e-05/0.5415, allocations: 24.09 kB / 384 MB, free: 11.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005761/0.5421, allocations: 122.5 kB / 384.1 MB, free: 11.03 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003861/0.546, allocations: 491.2 kB / 384.6 MB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001494/0.5475, allocations: 1.311 MB / 385.9 MB, free: 9.102 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002645/0.5502, allocations: 124 kB / 386 MB, free: 8.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003986/0.5507, allocations: 83.98 kB / 386.1 MB, free: 8.898 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (234): * Single equations (assignments): 231 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002878/0.5536, allocations: 0.9695 MB / 387.1 MB, free: 7.918 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006947/0.5543, allocations: 201.5 kB / 387.3 MB, free: 7.719 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006066/0.5604, allocations: 1.969 MB / 389.3 MB, free: 5.727 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.503e-05/0.5604, allocations: 12 kB / 389.3 MB, free: 5.715 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.5605, allocations: 4 kB / 389.3 MB, free: 5.711 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.578e-05/0.5605, allocations: 7.969 kB / 389.3 MB, free: 5.703 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01477/0.5753, allocations: 4.984 MB / 394.3 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.414e-05/0.5754, allocations: 8.25 kB / 394.3 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002952/0.5783, allocations: 319.5 kB / 394.6 MB, free: 300 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005138/0.5789, allocations: 94.52 kB / 394.7 MB, free: 196 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002127/0.5791, allocations: 32 kB / 394.7 MB, free: 164 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001265/0.5804, allocations: 1.28 MB / 396 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.5804, allocations: 4.188 kB / 396 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008368/0.5888, allocations: 3.222 MB / 399.2 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001678/0.5906, allocations: 458.4 kB / 399.7 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007063/0.5913, allocations: 24 kB / 399.7 MB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002156/0.5935, allocations: 79.91 kB / 399.8 MB, free: 10.82 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000403/0.5939, allocations: 93.14 kB / 399.9 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001534/0.5941, allocations: 40.06 kB / 399.9 MB, free: 10.69 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003172/0.5973, allocations: 1.206 MB / 401.1 MB, free: 9.461 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.82e-07/0.5974, allocations: 0 / 401.1 MB, free: 9.461 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002984/0.6003, allocations: 0.5312 MB / 401.6 MB, free: 8.93 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (144): * Single equations (assignments): 141 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006194/0.601, allocations: 167 kB / 401.8 MB, free: 8.758 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006386/0.6074, allocations: 2.205 MB / 404 MB, free: 6.5 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/0.6075, allocations: 4.062 kB / 404 MB, free: 6.496 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00314/0.6106, allocations: 1.181 MB / 405.2 MB, free: 5.262 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004005/0.6147, allocations: 466.6 kB / 405.6 MB, free: 4.801 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01721/0.632, allocations: 6.74 MB / 412.4 MB, free: 13.99 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003159/0.6352, allocations: 2.267 MB / 414.7 MB, free: 11.7 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001179/0.6364, allocations: 167.4 kB / 414.8 MB, free: 11.54 MB / 362.7 MB Notification: Performance of SimCode: time 1.082e-06/0.6364, allocations: 0 / 414.8 MB, free: 11.54 MB / 362.7 MB Notification: Performance of Templates: time 0.3954/1.032, allocations: 80.26 MB / 495.1 MB, free: 41.91 MB / 362.7 MB