Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.731/1.731, allocations: 171.1 MB / 186.3 MB, free: 1.34 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.102e-05/3.095e-05, allocations: 3.984 kB / 228.1 MB, free: 7.977 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08481/0.08488, allocations: 38.77 MB / 266.9 MB, free: 1.125 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.0156/0.1005, allocations: 8.672 MB / 275.6 MB, free: 8.41 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.008708/0.1093, allocations: 3.103 MB / 278.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001957/0.1113, allocations: 75.75 kB / 278.7 MB, free: 5.227 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002486/0.1139, allocations: 0.5981 MB / 279.3 MB, free: 4.625 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003517/0.1174, allocations: 0.6852 MB / 280 MB, free: 3.938 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00159/0.1191, allocations: 291.7 kB / 280.3 MB, free: 3.652 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.004485/0.1236, allocations: 1.436 MB / 281.7 MB, free: 2.215 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003085/0.1267, allocations: 1.446 MB / 283.2 MB, free: 0.75 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001867/0.1286, allocations: 0.7752 MB / 284 MB, free: 15.97 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002403/0.1311, allocations: 1.032 MB / 285 MB, free: 14.94 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001145/0.1323, allocations: 159.9 kB / 285.2 MB, free: 14.78 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005625/0.1329, allocations: 96 kB / 285.3 MB, free: 14.69 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001382/0.1343, allocations: 0.7049 MB / 286 MB, free: 13.98 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009222/0.1352, allocations: 232 kB / 286.2 MB, free: 13.75 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006484/0.1417, allocations: 3.783 MB / 290 MB, free: 9.961 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1418, allocations: 0 / 290 MB, free: 9.961 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.376e-06/0.1418, allocations: 0 / 290 MB, free: 9.961 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001657/0.142, allocations: 0 / 290 MB, free: 9.961 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.00838/0.1504, allocations: 2.575 MB / 292.5 MB, free: 7.328 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.1504, allocations: 8.031 kB / 292.5 MB, free: 7.32 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001684/0.1521, allocations: 336.1 kB / 292.9 MB, free: 6.988 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005576/0.1577, allocations: 1.549 MB / 294.4 MB, free: 5.383 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002406/0.158, allocations: 189 kB / 294.6 MB, free: 5.195 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007847/0.1588, allocations: 247.9 kB / 294.9 MB, free: 4.953 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01011/0.1689, allocations: 3.232 MB / 298.1 MB, free: 1.641 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001085/0.1691, allocations: 0 / 298.1 MB, free: 1.641 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003742/0.1695, allocations: 104 kB / 298.2 MB, free: 1.539 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002253/0.1697, allocations: 120.9 kB / 298.3 MB, free: 1.418 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2229/0.3927, allocations: 2.706 MB / 301 MB, free: 26.95 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02754/0.4203, allocations: 10.37 MB / 311.4 MB, free: 21.32 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002922/0.4232, allocations: 1.312 MB / 312.7 MB, free: 20.47 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003753/0.4237, allocations: 123.2 kB / 312.8 MB, free: 20.37 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.288e-05/0.4237, allocations: 39.59 kB / 312.9 MB, free: 20.32 MB / 250.7 MB Notification: Performance of pre-optimization done (n=95): time 3.867e-06/0.4237, allocations: 2.516 kB / 312.9 MB, free: 20.32 MB / 250.7 MB Notification: Performance of matching and sorting (n=120): time 0.02475/0.4485, allocations: 6.862 MB / 319.7 MB, free: 16.6 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.603e-05/0.4486, allocations: 67.5 kB / 319.8 MB, free: 16.53 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002903/0.4515, allocations: 1.401 MB / 321.2 MB, free: 15.8 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002871/0.4519, allocations: 43.3 kB / 321.2 MB, free: 15.75 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007931/0.4527, allocations: 1.209 MB / 322.4 MB, free: 14.66 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004702/0.4532, allocations: 412.1 kB / 322.8 MB, free: 14.31 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001487/0.4533, allocations: 35.89 kB / 322.9 MB, free: 14.29 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.4535, allocations: 371.5 kB / 323.2 MB, free: 13.93 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001844/0.4553, allocations: 0.7599 MB / 324 MB, free: 13.45 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001998/0.4573, allocations: 1.277 MB / 325.3 MB, free: 11.95 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002128/0.4595, allocations: 0.9721 MB / 326.2 MB, free: 10.98 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.278e-05/0.4595, allocations: 7.953 kB / 326.3 MB, free: 10.97 MB / 250.7 MB Notification: Performance of matching and sorting (n=201) (initialization): time 0.005581/0.4651, allocations: 2.338 MB / 328.6 MB, free: 8.613 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.545e-05/0.4652, allocations: 15.3 kB / 328.6 MB, free: 8.602 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.856e-05/0.4652, allocations: 16 kB / 328.6 MB, free: 8.586 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009431/0.4662, allocations: 239.5 kB / 328.9 MB, free: 8.34 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002843/0.4691, allocations: 419.3 kB / 329.3 MB, free: 7.93 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003057/0.4721, allocations: 3.045 MB / 332.3 MB, free: 4.613 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002127/0.4743, allocations: 123.8 kB / 332.4 MB, free: 4.492 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002167/0.4746, allocations: 68 kB / 332.5 MB, free: 4.426 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 192 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001875/0.4765, allocations: 0.8133 MB / 333.3 MB, free: 3.602 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005129/0.477, allocations: 189.7 kB / 333.5 MB, free: 3.414 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004839/0.4818, allocations: 2.003 MB / 335.5 MB, free: 1.387 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.588e-05/0.4819, allocations: 16 kB / 335.5 MB, free: 1.371 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.4819, allocations: 0 / 335.5 MB, free: 1.371 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.057e-05/0.482, allocations: 11.91 kB / 335.5 MB, free: 1.359 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0125/0.4945, allocations: 4.622 MB / 340.1 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/0.4945, allocations: 4 kB / 340.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002245/0.4968, allocations: 263.9 kB / 340.4 MB, free: 12.4 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009706/0.4978, allocations: 203.2 kB / 340.6 MB, free: 12.19 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000176/0.498, allocations: 27.98 kB / 340.6 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003851/0.5019, allocations: 3.007 MB / 343.6 MB, free: 8.887 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/0.5019, allocations: 4.031 kB / 343.6 MB, free: 8.883 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008112/0.51, allocations: 3.231 MB / 346.9 MB, free: 5.543 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00132/0.5114, allocations: 406.6 kB / 347.3 MB, free: 5.125 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004862/0.5119, allocations: 24 kB / 347.3 MB, free: 5.102 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001585/0.5135, allocations: 95.83 kB / 347.4 MB, free: 5.008 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002761/0.5138, allocations: 76.89 kB / 347.5 MB, free: 4.934 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001308/0.514, allocations: 36.05 kB / 347.5 MB, free: 4.898 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.002582/0.5165, allocations: 1.074 MB / 348.6 MB, free: 3.832 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.21e-07/0.5166, allocations: 0 / 348.6 MB, free: 3.832 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.00245/0.519, allocations: 475.9 kB / 349 MB, free: 3.367 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (118): * Single equations (assignments): 114 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005213/0.5196, allocations: 151.2 kB / 349.2 MB, free: 3.215 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.006113/0.5257, allocations: 2.307 MB / 351.5 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.775e-06/0.5258, allocations: 0.5 kB / 351.5 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003419/0.5292, allocations: 1.327 MB / 352.8 MB, free: 15.45 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003695/0.533, allocations: 439.7 kB / 353.3 MB, free: 15.02 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01404/0.5471, allocations: 5.724 MB / 359 MB, free: 9.23 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002978/0.5501, allocations: 2.004 MB / 361 MB, free: 7.195 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009835/0.5511, allocations: 135.4 kB / 361.1 MB, free: 7.062 MB / 282.7 MB Notification: Performance of SimCode: time 1.513e-06/0.5512, allocations: 4 kB / 361.1 MB, free: 7.059 MB / 282.7 MB Notification: Performance of Templates: time 0.3824/0.9336, allocations: 75.92 MB / 437 MB, free: 112.1 MB / 346.7 MB