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_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 1.835/1.835, allocations: 171.2 MB / 185.7 MB, free: 1.391 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.726e-05/2.728e-05, allocations: 4 kB / 228.1 MB, free: 7.328 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.087/0.08705, allocations: 38.78 MB / 266.9 MB, free: 476 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.02206/0.1092, allocations: 9.235 MB / 276.2 MB, free: 7.188 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01208/0.1213, allocations: 3.333 MB / 279.5 MB, free: 3.848 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002696/0.1241, allocations: 91.69 kB / 279.6 MB, free: 3.758 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003612/0.1277, allocations: 0.6214 MB / 280.2 MB, free: 3.133 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005284/0.1331, allocations: 0.7553 MB / 281 MB, free: 2.375 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00226/0.1354, allocations: 323.6 kB / 281.3 MB, free: 2.059 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.006296/0.1417, allocations: 1.592 MB / 282.9 MB, free: 476 kB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005126/0.1469, allocations: 1.659 MB / 284.5 MB, free: 14.79 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002701/0.1497, allocations: 0.8608 MB / 285.4 MB, free: 13.93 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003715/0.1534, allocations: 1.145 MB / 286.5 MB, free: 12.78 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001651/0.1551, allocations: 179.9 kB / 286.7 MB, free: 12.6 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008285/0.156, allocations: 104 kB / 286.8 MB, free: 12.5 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002203/0.1582, allocations: 0.8023 MB / 287.6 MB, free: 11.7 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001457/0.1597, allocations: 252 kB / 287.9 MB, free: 11.45 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00896/0.1687, allocations: 4.239 MB / 292.1 MB, free: 7.199 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.104e-05/0.1688, allocations: 0 / 292.1 MB, free: 7.199 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.101e-06/0.1688, allocations: 3.938 kB / 292.1 MB, free: 7.195 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0002066/0.169, allocations: 7.938 kB / 292.1 MB, free: 7.188 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.01273/0.1818, allocations: 2.854 MB / 295 MB, free: 4.27 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.048e-05/0.1818, allocations: 8.031 kB / 295 MB, free: 4.262 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002566/0.1844, allocations: 387.7 kB / 295.4 MB, free: 3.879 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005351/0.1899, allocations: 1.746 MB / 297.1 MB, free: 2.078 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002929/0.1902, allocations: 213.7 kB / 297.3 MB, free: 1.867 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00103/0.1912, allocations: 287.9 kB / 297.6 MB, free: 1.586 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2266/0.4178, allocations: 3.636 MB / 301.2 MB, free: 26.11 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001314/0.418, allocations: 3.422 kB / 301.2 MB, free: 26.11 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000429/0.4184, allocations: 115.2 kB / 301.3 MB, free: 26.03 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002494/0.4187, allocations: 144 kB / 301.5 MB, free: 26.01 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01072/0.4294, allocations: 3.065 MB / 304.5 MB, free: 24.91 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03329/0.4628, allocations: 11.47 MB / 316 MB, free: 17.62 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004593/0.4674, allocations: 1.862 MB / 317.9 MB, free: 16.34 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004491/0.4679, allocations: 129.4 kB / 318 MB, free: 16.23 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.15e-05/0.468, allocations: 43.47 kB / 318 MB, free: 16.19 MB / 250.7 MB Notification: Performance of pre-optimization done (n=123): time 6.161e-06/0.468, allocations: 0 / 318 MB, free: 16.19 MB / 250.7 MB Notification: Performance of matching and sorting (n=138): time 0.02535/0.4934, allocations: 6.457 MB / 324.5 MB, free: 11.86 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.006e-05/0.4935, allocations: 72.66 kB / 324.6 MB, free: 11.77 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00382/0.4973, allocations: 1.532 MB / 326.1 MB, free: 10.2 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002887/0.4976, allocations: 49.7 kB / 326.2 MB, free: 10.15 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001347/0.499, allocations: 1.381 MB / 327.5 MB, free: 8.758 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006429/0.4997, allocations: 486.2 kB / 328 MB, free: 8.285 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002021/0.4999, allocations: 36 kB / 328 MB, free: 8.25 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.5001, allocations: 373.9 kB / 328.4 MB, free: 7.879 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002719/0.5028, allocations: 0.8042 MB / 329.2 MB, free: 7.074 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003048/0.5059, allocations: 1.355 MB / 330.6 MB, free: 5.48 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003117/0.509, allocations: 1.041 MB / 331.6 MB, free: 4.438 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.578e-05/0.5091, allocations: 4 kB / 331.6 MB, free: 4.434 MB / 250.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.008688/0.5178, allocations: 2.8 MB / 334.4 MB, free: 1.594 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.612e-05/0.5178, allocations: 12 kB / 334.4 MB, free: 1.582 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-05/0.5179, allocations: 16 kB / 334.4 MB, free: 1.566 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001415/0.5193, allocations: 367.5 kB / 334.8 MB, free: 1.195 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003246/0.5226, allocations: 441.6 kB / 335.2 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009248/0.5319, allocations: 6.051 MB / 341.3 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002337/0.5343, allocations: 127.8 kB / 341.4 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000332/0.5347, allocations: 80 kB / 341.5 MB, free: 10.12 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.002585/0.5373, allocations: 0.8895 MB / 342.4 MB, free: 9.219 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006559/0.5379, allocations: 201.6 kB / 342.6 MB, free: 9.02 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006935/0.5449, allocations: 2.381 MB / 345 MB, free: 6.594 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.221e-05/0.545, allocations: 12 kB / 345 MB, free: 6.582 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-05/0.545, allocations: 4 kB / 345 MB, free: 6.578 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.764e-05/0.545, allocations: 7.969 kB / 345 MB, free: 6.57 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02172/0.5668, allocations: 5.343 MB / 350.3 MB, free: 1.113 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.048e-05/0.5669, allocations: 7.938 kB / 350.3 MB, free: 1.105 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00342/0.5703, allocations: 255.6 kB / 350.6 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002625/0.573, allocations: 379.4 kB / 350.9 MB, free: 484 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003954/0.5734, allocations: 35.98 kB / 351 MB, free: 448 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0178/0.5913, allocations: 7.534 MB / 358.5 MB, free: 8.371 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-05/0.5913, allocations: 4 kB / 358.5 MB, free: 8.367 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01477/0.6061, allocations: 3.795 MB / 362.3 MB, free: 4.336 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002507/0.6087, allocations: 446.5 kB / 362.8 MB, free: 3.879 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000964/0.6097, allocations: 36 kB / 362.8 MB, free: 3.844 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003054/0.6128, allocations: 87.89 kB / 362.9 MB, free: 3.758 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005786/0.6134, allocations: 101.1 kB / 363 MB, free: 3.66 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000255/0.6137, allocations: 40 kB / 363 MB, free: 3.621 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.005069/0.6188, allocations: 1.176 MB / 364.2 MB, free: 2.422 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.664e-06/0.6189, allocations: 0 / 364.2 MB, free: 2.422 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.004338/0.6232, allocations: 0.5231 MB / 364.7 MB, free: 1.902 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.0006024/0.6239, allocations: 160.4 kB / 364.9 MB, free: 1.738 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.006315/0.6302, allocations: 2.448 MB / 367.3 MB, free: 15.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/0.6303, allocations: 0 / 367.3 MB, free: 15.23 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003657/0.634, allocations: 1.468 MB / 368.8 MB, free: 13.71 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00402/0.638, allocations: 488.7 kB / 369.3 MB, free: 13.24 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01623/0.6543, allocations: 6.549 MB / 375.8 MB, free: 6.613 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004039/0.6584, allocations: 2.229 MB / 378 MB, free: 4.355 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.002827/0.6613, allocations: 492.9 kB / 378.5 MB, free: 3.871 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008405/0.6621, allocations: 135.4 kB / 378.7 MB, free: 3.738 MB / 298.7 MB Notification: Performance of SimCode: time 1.142e-06/0.6622, allocations: 4 kB / 378.7 MB, free: 3.734 MB / 298.7 MB Notification: Performance of Templates: time 0.07924/0.7414, allocations: 24.66 MB / 403.3 MB, free: 11.14 MB / 330.7 MB