Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,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.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 1.705/1.705, allocations: 171.1 MB / 186.3 MB, free: 1.426 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.276e-05/3.275e-05, allocations: 4 kB / 228.1 MB, free: 7.988 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08384/0.0839, allocations: 38.78 MB / 266.9 MB, free: 1.117 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01651/0.1005, allocations: 9.226 MB / 276.1 MB, free: 7.848 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.009241/0.1098, allocations: 3.337 MB / 279.5 MB, free: 4.504 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002312/0.1121, allocations: 87.75 kB / 279.6 MB, free: 4.418 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002774/0.115, allocations: 0.6252 MB / 280.2 MB, free: 3.789 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004011/0.119, allocations: 0.7514 MB / 280.9 MB, free: 3.035 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00187/0.1209, allocations: 335.6 kB / 281.3 MB, free: 2.707 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.004967/0.1259, allocations: 1.584 MB / 282.8 MB, free: 1.121 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003801/0.1298, allocations: 1.663 MB / 284.5 MB, free: 15.45 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002093/0.132, allocations: 0.8569 MB / 285.4 MB, free: 14.59 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002676/0.1347, allocations: 1.145 MB / 286.5 MB, free: 13.44 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001445/0.1362, allocations: 179.9 kB / 286.7 MB, free: 13.26 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007298/0.1369, allocations: 104 kB / 286.8 MB, free: 13.16 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001763/0.1387, allocations: 0.8061 MB / 287.6 MB, free: 12.35 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001178/0.1399, allocations: 252 kB / 287.8 MB, free: 12.11 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007142/0.1471, allocations: 4.239 MB / 292.1 MB, free: 7.855 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1472, allocations: 0 / 292.1 MB, free: 7.855 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.302e-06/0.1472, allocations: 0 / 292.1 MB, free: 7.855 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001935/0.1474, allocations: 7.938 kB / 292.1 MB, free: 7.848 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: 744 * Number of variables: 744 Notification: Performance of Generate backend data structure: time 0.009472/0.1569, allocations: 2.858 MB / 294.9 MB, free: 4.926 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/0.1569, allocations: 8.031 kB / 295 MB, free: 4.918 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002066/0.159, allocations: 387.6 kB / 295.3 MB, free: 4.535 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0055/0.1645, allocations: 1.743 MB / 297.1 MB, free: 2.738 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000318/0.1649, allocations: 213.7 kB / 297.3 MB, free: 2.527 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001093/0.166, allocations: 283.9 kB / 297.6 MB, free: 2.25 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2304/0.3964, allocations: 3.635 MB / 301.2 MB, free: 26.02 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001341/0.3966, allocations: 9.516 kB / 301.2 MB, free: 26.02 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004028/0.397, allocations: 118.1 kB / 301.3 MB, free: 26.02 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002231/0.3972, allocations: 140.5 kB / 301.5 MB, free: 26 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01028/0.4075, allocations: 3.068 MB / 304.5 MB, free: 24.91 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03863/0.4462, allocations: 11.47 MB / 316 MB, free: 17.7 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004838/0.4511, allocations: 1.855 MB / 317.8 MB, free: 16.42 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004597/0.4516, allocations: 128.6 kB / 318 MB, free: 16.31 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.773e-05/0.4517, allocations: 44.06 kB / 318 MB, free: 16.27 MB / 250.7 MB Notification: Performance of pre-optimization done (n=123): time 6.562e-06/0.4517, allocations: 6.344 kB / 318 MB, free: 16.26 MB / 250.7 MB Notification: Performance of matching and sorting (n=138): time 0.02575/0.4775, allocations: 6.46 MB / 324.5 MB, free: 12.52 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.841e-05/0.4776, allocations: 64.72 kB / 324.5 MB, free: 12.45 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003983/0.4816, allocations: 1.532 MB / 326.1 MB, free: 10.88 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003379/0.482, allocations: 49.7 kB / 326.1 MB, free: 10.82 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001206/0.4832, allocations: 1.305 MB / 327.4 MB, free: 9.508 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007159/0.4839, allocations: 492.5 kB / 327.9 MB, free: 9.031 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002063/0.4842, allocations: 36 kB / 327.9 MB, free: 8.996 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.4844, allocations: 378.8 kB / 328.3 MB, free: 8.617 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002739/0.4871, allocations: 0.812 MB / 329.1 MB, free: 7.805 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002696/0.4898, allocations: 1.351 MB / 330.5 MB, free: 6.215 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002856/0.4927, allocations: 1.037 MB / 331.5 MB, free: 5.176 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.916e-05/0.4928, allocations: 8 kB / 331.5 MB, free: 5.168 MB / 250.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.006356/0.4992, allocations: 2.679 MB / 334.2 MB, free: 2.449 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.403e-05/0.4992, allocations: 12 kB / 334.2 MB, free: 2.438 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.109e-05/0.4993, allocations: 16 kB / 334.2 MB, free: 2.422 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00126/0.5005, allocations: 369.9 kB / 334.6 MB, free: 2.051 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002991/0.5036, allocations: 439.3 kB / 335 MB, free: 1.621 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008806/0.5124, allocations: 6.047 MB / 341.1 MB, free: 11.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002301/0.5148, allocations: 127.9 kB / 341.2 MB, free: 11.05 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003127/0.5151, allocations: 79.94 kB / 341.3 MB, free: 10.98 MB / 266.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 (211): * Single equations (assignments): 207 * 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.002452/0.5176, allocations: 0.8798 MB / 342.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006154/0.5182, allocations: 209.4 kB / 342.4 MB, free: 9.879 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006801/0.525, allocations: 2.385 MB / 344.7 MB, free: 7.449 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-05/0.5251, allocations: 12 kB / 344.8 MB, free: 7.438 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/0.5251, allocations: 4 kB / 344.8 MB, free: 7.434 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.418e-05/0.5252, allocations: 7.969 kB / 344.8 MB, free: 7.426 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01555/0.5407, allocations: 5.339 MB / 350.1 MB, free: 1.973 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.635e-05/0.5408, allocations: 4 kB / 350.1 MB, free: 1.969 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002279/0.5431, allocations: 259.6 kB / 350.4 MB, free: 1.715 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001723/0.5448, allocations: 379.6 kB / 350.7 MB, free: 1.332 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002679/0.5451, allocations: 31.98 kB / 350.8 MB, free: 1.301 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01082/0.556, allocations: 7.541 MB / 358.3 MB, free: 9.227 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.297e-06/0.556, allocations: 7.938 kB / 358.3 MB, free: 9.219 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009269/0.5653, allocations: 3.796 MB / 362.1 MB, free: 5.188 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001425/0.5668, allocations: 442.5 kB / 362.5 MB, free: 4.734 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005426/0.5674, allocations: 32 kB / 362.6 MB, free: 4.703 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001715/0.5691, allocations: 91.89 kB / 362.7 MB, free: 4.613 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003261/0.5694, allocations: 105.1 kB / 362.8 MB, free: 4.512 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001565/0.5696, allocations: 36 kB / 362.8 MB, free: 4.477 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.003146/0.5728, allocations: 1.176 MB / 364 MB, free: 3.277 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.92e-07/0.5728, allocations: 0 / 364 MB, free: 3.277 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.003116/0.5759, allocations: 0.5192 MB / 364.5 MB, free: 2.762 MB / 282.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 (129): * Single equations (assignments): 125 * 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.0006289/0.5766, allocations: 165.6 kB / 364.7 MB, free: 2.594 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.006589/0.5832, allocations: 2.448 MB / 367.1 MB, free: 88 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.766e-06/0.5833, allocations: 0 / 367.1 MB, free: 88 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003645/0.5869, allocations: 1.471 MB / 368.6 MB, free: 14.57 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005563/0.5926, allocations: 483.9 kB / 369 MB, free: 14.1 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02383/0.6165, allocations: 6.601 MB / 375.6 MB, free: 7.418 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004165/0.6207, allocations: 2.213 MB / 377.9 MB, free: 5.176 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001037/0.6218, allocations: 147.4 kB / 378 MB, free: 5.031 MB / 298.7 MB Notification: Performance of SimCode: time 1.132e-06/0.6218, allocations: 0 / 378 MB, free: 5.031 MB / 298.7 MB Notification: Performance of Templates: time 0.4223/1.044, allocations: 83.69 MB / 461.7 MB, free: 94.68 MB / 346.7 MB