Running command: translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,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="ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadModel(ModelicaTest): time 2.423/2.423, allocations: 249.5 MB / 261.6 MB, free: 2.164 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.173e-05/3.193e-05, allocations: 0 / 323.4 MB, free: 4.32 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3562/0.3562, allocations: 58.83 MB / 382.2 MB, free: 10.32 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2107/0.5669, allocations: 123 MB / 0.4933 GB, free: 1.465 MB / 426.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002455/0.5672, allocations: 79.97 kB / 0.4934 GB, free: 1.387 MB / 426.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.5691/1.136, allocations: 61.89 MB / 0.5539 GB, free: 95.43 MB / 458.8 MB Notification: Performance of FrontEnd: time 2.314e-06/1.136, allocations: 0 / 0.5539 GB, free: 95.43 MB / 458.8 MB Notification: Performance of Transformations before backend: time 0.000246/1.137, allocations: 85.84 kB / 0.5539 GB, free: 95.41 MB / 458.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.006721/1.143, allocations: 2.906 MB / 0.5568 GB, free: 94.16 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/1.143, allocations: 9.031 kB / 0.5568 GB, free: 94.16 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001774/1.145, allocations: 408.1 kB / 0.5572 GB, free: 93.98 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005575/1.151, allocations: 2.141 MB / 0.5593 GB, free: 93.4 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000191/1.151, allocations: 223.9 kB / 0.5595 GB, free: 93.38 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006148/1.152, allocations: 287.1 kB / 0.5598 GB, free: 93.38 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00843/1.16, allocations: 3.599 MB / 0.5633 GB, free: 92.46 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001136/1.16, allocations: 7.875 kB / 0.5633 GB, free: 92.46 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003936/1.161, allocations: 116.4 kB / 0.5634 GB, free: 92.43 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001651/1.161, allocations: 139 kB / 0.5635 GB, free: 92.31 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007095/1.168, allocations: 2.887 MB / 0.5663 GB, free: 90.74 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02395/1.192, allocations: 11.64 MB / 0.5777 GB, free: 84.07 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004862/1.197, allocations: 2.188 MB / 0.5798 GB, free: 82.38 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00198/1.199, allocations: 1.065 MB / 0.5809 GB, free: 81.71 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003681/1.199, allocations: 219.1 kB / 0.5811 GB, free: 81.46 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/1.199, allocations: 52.19 kB / 0.5811 GB, free: 81.42 MB / 458.8 MB Notification: Performance of pre-optimization done (n=142): time 5.159e-06/1.199, allocations: 0 / 0.5811 GB, free: 81.42 MB / 458.8 MB Notification: Performance of matching and sorting (n=156): time 0.01421/1.214, allocations: 6.061 MB / 0.5871 GB, free: 75.95 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.601e-05/1.214, allocations: 68.72 kB / 0.5871 GB, free: 75.86 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003117/1.217, allocations: 1.69 MB / 0.5888 GB, free: 74.13 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002966/1.217, allocations: 53.7 kB / 0.5888 GB, free: 74.07 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008503/1.218, allocations: 1.362 MB / 0.5902 GB, free: 72.7 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004788/1.218, allocations: 0.5253 MB / 0.5907 GB, free: 72.18 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001413/1.219, allocations: 32 kB / 0.5907 GB, free: 72.14 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0001261/1.219, allocations: 381.9 kB / 0.5911 GB, free: 71.77 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001631/1.22, allocations: 0.8669 MB / 0.5919 GB, free: 70.9 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001845/1.222, allocations: 1.303 MB / 0.5932 GB, free: 69.41 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002008/1.224, allocations: 1.095 MB / 0.5942 GB, free: 68.31 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.216e-05/1.224, allocations: 4 kB / 0.5943 GB, free: 68.31 MB / 458.8 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005868/1.23, allocations: 2.856 MB / 0.597 GB, free: 65.43 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.165e-05/1.23, allocations: 12 kB / 0.5971 GB, free: 65.42 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.112e-05/1.23, allocations: 12 kB / 0.5971 GB, free: 65.41 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001365/1.232, allocations: 446.6 kB / 0.5975 GB, free: 64.96 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002378/1.234, allocations: 455.3 kB / 0.5979 GB, free: 64.52 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007871/1.242, allocations: 7.03 MB / 0.6048 GB, free: 57.09 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002286/1.244, allocations: 135.8 kB / 0.6049 GB, free: 56.96 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002946/1.245, allocations: 75.98 kB / 0.605 GB, free: 56.88 MB / 458.8 MB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "Stator space phasor current / rotor fixed frame" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (204): * Single equations (assignments): 201 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004592/1.245, allocations: 212.4 kB / 0.6052 GB, free: 56.67 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004984/1.246, allocations: 209.4 kB / 0.6054 GB, free: 56.46 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006345/1.252, allocations: 2.964 MB / 0.6083 GB, free: 53.48 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.821e-05/1.252, allocations: 16.14 kB / 0.6083 GB, free: 53.46 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.457e-05/1.252, allocations: 8 kB / 0.6083 GB, free: 53.45 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.641e-05/1.252, allocations: 11.95 kB / 0.6083 GB, free: 53.44 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01331/1.265, allocations: 6.116 MB / 0.6143 GB, free: 47.25 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.196e-05/1.265, allocations: 4.062 kB / 0.6143 GB, free: 47.25 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001481/1.267, allocations: 239.6 kB / 0.6145 GB, free: 47.01 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002905/1.27, allocations: 0.8216 MB / 0.6153 GB, free: 46.18 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002507/1.27, allocations: 39.98 kB / 0.6154 GB, free: 46.14 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02633/1.297, allocations: 10.2 MB / 0.6253 GB, free: 35.54 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.466e-06/1.297, allocations: 0 / 0.6253 GB, free: 35.54 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01897/1.316, allocations: 4.377 MB / 0.6296 GB, free: 31 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.015/1.331, allocations: 0.4905 MB / 0.6301 GB, free: 30.49 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001328/1.332, allocations: 39.89 kB / 0.6301 GB, free: 30.45 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003905/1.336, allocations: 103.9 kB / 0.6302 GB, free: 30.35 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.009113/1.345, allocations: 117.1 kB / 0.6303 GB, free: 30.23 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006337/1.346, allocations: 43.98 kB / 0.6304 GB, free: 30.19 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.00566/1.352, allocations: 1.298 MB / 0.6316 GB, free: 28.86 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.628e-06/1.352, allocations: 0 / 0.6316 GB, free: 28.86 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.008843/1.36, allocations: 0.6367 MB / 0.6323 GB, free: 28.23 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.i_0_s,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 (113): * Single equations (assignments): 110 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(3,88.9%) 34} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001614/1.362, allocations: 447.3 kB / 0.6327 GB, free: 27.84 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.0103/1.373, allocations: 2.536 MB / 0.6352 GB, free: 25.27 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.6e-05/1.373, allocations: 8.109 kB / 0.6352 GB, free: 25.27 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.006345/1.379, allocations: 1.609 MB / 0.6367 GB, free: 23.62 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006321/1.385, allocations: 489.3 kB / 0.6372 GB, free: 23.14 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01071/1.396, allocations: 4.701 MB / 0.6418 GB, free: 18.37 MB / 458.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002458/1.399, allocations: 2.272 MB / 0.644 GB, free: 16.07 MB / 458.8 MB Notification: Performance of simCode: alias equations: time 0.002122/1.401, allocations: 469.6 kB / 0.6445 GB, free: 15.61 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007179/1.402, allocations: 151.4 kB / 0.6446 GB, free: 15.46 MB / 458.8 MB Notification: Performance of SimCode: time 1.802e-06/1.402, allocations: 0 / 0.6446 GB, free: 15.46 MB / 458.8 MB Notification: Performance of Templates: time 0.08529/1.487, allocations: 34.61 MB / 0.6784 GB, free: 12.91 MB / 490.8 MB