Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 2.062/2.062, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.15e-05/3.157e-05, allocations: 7.906 kB / 258.8 MB, free: 8.695 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3074/0.3074, allocations: 44.5 MB / 303.3 MB, free: 12.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01619/0.3237, allocations: 9.255 MB / 312.6 MB, free: 4.422 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.009626/0.3334, allocations: 3.453 MB / 316 MB, free: 0.957 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002365/0.3358, allocations: 91.69 kB / 316.1 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002753/0.3386, allocations: 0.6369 MB / 316.7 MB, free: 232 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004359/0.343, allocations: 0.7748 MB / 317.5 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001982/0.345, allocations: 335.6 kB / 317.8 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00506/0.3501, allocations: 1.592 MB / 319.4 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003783/0.354, allocations: 1.651 MB / 321.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00228/0.3563, allocations: 0.8336 MB / 321.9 MB, free: 11.02 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003233/0.3596, allocations: 1.226 MB / 323.1 MB, free: 9.793 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001575/0.3612, allocations: 187.9 kB / 323.3 MB, free: 9.609 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007334/0.362, allocations: 108 kB / 323.4 MB, free: 9.504 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001549/0.3636, allocations: 0.7905 MB / 324.2 MB, free: 8.711 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001194/0.3648, allocations: 252 kB / 324.5 MB, free: 8.465 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007632/0.3725, allocations: 4.363 MB / 328.8 MB, free: 4.09 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.3725, allocations: 0 / 328.8 MB, free: 4.09 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.098e-06/0.3725, allocations: 0 / 328.8 MB, free: 4.09 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001972/0.3727, allocations: 4 kB / 328.8 MB, free: 4.086 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 742 * Number of variables: 742 Notification: Performance of Generate backend data structure: time 0.009901/0.3827, allocations: 2.878 MB / 331.7 MB, free: 1.145 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/0.3827, allocations: 8.031 kB / 331.7 MB, free: 1.137 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002155/0.3849, allocations: 391.6 kB / 332.1 MB, free: 0.75 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005897/0.3908, allocations: 1.884 MB / 334 MB, free: 14.81 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002775/0.3912, allocations: 205.7 kB / 334.2 MB, free: 14.61 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001135/0.3923, allocations: 283.9 kB / 334.5 MB, free: 14.33 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01314/0.4055, allocations: 3.642 MB / 338.1 MB, free: 10.62 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001652/0.4057, allocations: 11.98 kB / 338.1 MB, free: 10.61 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009094/0.4066, allocations: 120 kB / 338.2 MB, free: 10.49 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002722/0.4069, allocations: 137.5 kB / 338.4 MB, free: 10.35 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01148/0.4184, allocations: 3.062 MB / 341.4 MB, free: 7.277 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03373/0.4522, allocations: 11.59 MB / 353 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004135/0.4564, allocations: 1.88 MB / 354.9 MB, free: 9.359 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004921/0.457, allocations: 211.2 kB / 355.1 MB, free: 9.117 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.556e-05/0.457, allocations: 43.56 kB / 355.1 MB, free: 9.066 MB / 298.7 MB Notification: Performance of pre-optimization done (n=124): time 3.827e-06/0.4571, allocations: 4 kB / 355.1 MB, free: 9.062 MB / 298.7 MB Notification: Performance of matching and sorting (n=139): time 0.02269/0.4798, allocations: 6.583 MB / 361.7 MB, free: 2.324 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.674e-05/0.4799, allocations: 64.72 kB / 361.8 MB, free: 2.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004586/0.4845, allocations: 1.702 MB / 363.5 MB, free: 0.5117 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003345/0.4848, allocations: 49.7 kB / 363.5 MB, free: 468 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001501/0.4864, allocations: 1.325 MB / 364.9 MB, free: 15.12 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008512/0.4872, allocations: 485 kB / 365.3 MB, free: 14.64 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002105/0.4875, allocations: 40 kB / 365.4 MB, free: 14.6 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002523/0.4877, allocations: 386.7 kB / 365.8 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002394/0.4902, allocations: 0.812 MB / 366.6 MB, free: 13.4 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002996/0.4932, allocations: 1.359 MB / 367.9 MB, free: 11.79 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003178/0.4964, allocations: 1.041 MB / 369 MB, free: 10.75 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-05/0.4965, allocations: 4 kB / 369 MB, free: 10.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.008073/0.5046, allocations: 2.683 MB / 371.7 MB, free: 8.023 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.197e-05/0.5047, allocations: 12 kB / 371.7 MB, free: 8.012 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.991e-05/0.5047, allocations: 20 kB / 371.7 MB, free: 7.992 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001471/0.5062, allocations: 363.6 kB / 372 MB, free: 7.625 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003305/0.5096, allocations: 439.3 kB / 372.5 MB, free: 7.195 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00937/0.519, allocations: 6.037 MB / 378.5 MB, free: 0.75 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002644/0.5217, allocations: 127.8 kB / 378.6 MB, free: 0.625 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003453/0.5221, allocations: 80.38 kB / 378.7 MB, free: 0.5469 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 79 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (212): * Single equations (assignments): 208 * 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: 3 {(2,100.0%) 9,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002651/0.5247, allocations: 0.8993 MB / 379.6 MB, free: 15.64 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006847/0.5254, allocations: 209.5 kB / 379.8 MB, free: 15.43 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006573/0.532, allocations: 2.393 MB / 382.2 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-05/0.5321, allocations: 19.94 kB / 382.2 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.906e-06/0.5321, allocations: 0 / 382.2 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.998e-05/0.5322, allocations: 7.969 kB / 382.2 MB, free: 12.97 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01752/0.5497, allocations: 5.432 MB / 387.7 MB, free: 7.391 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.756e-05/0.5498, allocations: 4 kB / 387.7 MB, free: 7.387 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003482/0.5533, allocations: 264.1 kB / 387.9 MB, free: 7.129 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002674/0.556, allocations: 383 kB / 388.3 MB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003908/0.5565, allocations: 39.98 kB / 388.3 MB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01614/0.5726, allocations: 7.525 MB / 395.9 MB, free: 14.65 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.164e-05/0.5727, allocations: 7.953 kB / 395.9 MB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01308/0.5858, allocations: 3.818 MB / 399.7 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002299/0.5881, allocations: 466.4 kB / 400.2 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008818/0.5891, allocations: 35.98 kB / 400.2 MB, free: 10.08 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002815/0.5919, allocations: 87.89 kB / 400.3 MB, free: 9.992 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006143/0.5926, allocations: 105.1 kB / 400.4 MB, free: 9.891 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002351/0.5928, allocations: 40 kB / 400.4 MB, free: 9.852 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00491/0.5978, allocations: 1.302 MB / 401.7 MB, free: 8.527 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.937e-06/0.5978, allocations: 112 / 401.7 MB, free: 8.527 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004716/0.6026, allocations: 0.5352 MB / 402.3 MB, free: 7.992 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 126 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 9,(1,100.0%) 1,(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.0008029/0.6034, allocations: 168.5 kB / 402.4 MB, free: 7.82 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.008477/0.6119, allocations: 2.444 MB / 404.9 MB, free: 5.316 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.417e-05/0.612, allocations: 1.875 kB / 404.9 MB, free: 5.316 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004926/0.6169, allocations: 1.475 MB / 406.3 MB, free: 3.793 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005604/0.6226, allocations: 0.4901 MB / 406.8 MB, free: 3.301 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02233/0.645, allocations: 6.756 MB / 413.6 MB, free: 12.46 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005119/0.6502, allocations: 2.209 MB / 415.8 MB, free: 10.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00145/0.6517, allocations: 163.4 kB / 416 MB, free: 10.07 MB / 362.7 MB Notification: Performance of SimCode: time 1.984e-06/0.6517, allocations: 0 / 416 MB, free: 10.07 MB / 362.7 MB Notification: Performance of Templates: time 0.455/1.107, allocations: 85.94 MB / 0.4901 GB, free: 34.14 MB / 362.7 MB