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 1.819/1.819, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.108e-05/3.128e-05, allocations: 8.609 kB / 255.4 MB, free: 3.18 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07563/0.07568, allocations: 44.49 MB / 299.9 MB, free: 6.633 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3656/0.4413, allocations: 108.3 MB / 408.2 MB, free: 14.38 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/0.4416, allocations: 84.73 kB / 408.2 MB, free: 14.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.219/0.6606, allocations: 58.28 MB / 466.5 MB, free: 5.793 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.125e-06/0.6607, allocations: 0 / 466.5 MB, free: 5.793 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002776/0.661, allocations: 83.88 kB / 466.6 MB, free: 5.711 MB / 346.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.006848/0.6678, allocations: 2.872 MB / 469.5 MB, free: 2.969 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.6679, allocations: 12.03 kB / 469.5 MB, free: 2.957 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001428/0.6693, allocations: 399.6 kB / 469.9 MB, free: 2.562 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0063/0.6756, allocations: 2.172 MB / 472 MB, free: 352 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002619/0.6759, allocations: 213.7 kB / 472.3 MB, free: 136 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008904/0.6768, allocations: 280 kB / 472.5 MB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009379/0.6862, allocations: 3.555 MB / 476.1 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001111/0.6864, allocations: 11.89 kB / 476.1 MB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004237/0.6868, allocations: 119.9 kB / 476.2 MB, free: 12.03 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001916/0.687, allocations: 137.5 kB / 476.3 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007145/0.6942, allocations: 2.815 MB / 479.2 MB, free: 9.074 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02604/0.7203, allocations: 11.63 MB / 490.8 MB, free: 13.1 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00347/0.7238, allocations: 1.914 MB / 492.7 MB, free: 11.08 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001893/0.7257, allocations: 0.9295 MB / 493.6 MB, free: 10.15 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004344/0.7262, allocations: 219.5 kB / 493.9 MB, free: 9.895 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.861e-05/0.7262, allocations: 47.88 kB / 493.9 MB, free: 9.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=127): time 4.821e-06/0.7263, allocations: 0 / 493.9 MB, free: 9.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=148): time 0.01856/0.7448, allocations: 6.349 MB / 0.4885 GB, free: 3.434 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.975e-05/0.7449, allocations: 72.67 kB / 0.4886 GB, free: 3.352 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003773/0.7487, allocations: 1.708 MB / 0.4903 GB, free: 1.602 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002439/0.749, allocations: 53.7 kB / 0.4903 GB, free: 1.543 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001239/0.7502, allocations: 1.318 MB / 0.4916 GB, free: 216 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006149/0.7509, allocations: 0.5123 MB / 0.4921 GB, free: 15.69 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/0.751, allocations: 36 kB / 0.4921 GB, free: 15.65 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002604/0.7513, allocations: 386.8 kB / 0.4925 GB, free: 15.27 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001872/0.7532, allocations: 0.8551 MB / 0.4933 GB, free: 14.41 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00235/0.7556, allocations: 1.373 MB / 0.4947 GB, free: 12.8 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002363/0.758, allocations: 1.09 MB / 0.4957 GB, free: 11.71 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.461e-05/0.758, allocations: 4 kB / 0.4957 GB, free: 11.71 MB / 394.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.006895/0.7649, allocations: 2.798 MB / 0.4985 GB, free: 8.895 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.085e-05/0.765, allocations: 12 kB / 0.4985 GB, free: 8.883 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.207e-05/0.765, allocations: 16.44 kB / 0.4985 GB, free: 8.867 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001901/0.7669, allocations: 0.5605 MB / 0.4991 GB, free: 8.297 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002433/0.7694, allocations: 443.3 kB / 0.4995 GB, free: 7.863 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0107/0.7801, allocations: 6.265 MB / 0.5056 GB, free: 1.328 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002159/0.7823, allocations: 131.8 kB / 0.5057 GB, free: 1.199 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002327/0.7826, allocations: 83.98 kB / 0.5058 GB, free: 1.117 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (208): * Single equations (assignments): 205 * 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: 2 * 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: 2 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004512/0.783, allocations: 212.4 kB / 0.506 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004707/0.7835, allocations: 209.4 kB / 0.5062 GB, free: 0.6953 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2254/1.009, allocations: 2.607 MB / 0.5087 GB, free: 84.93 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.776e-05/1.009, allocations: 15 kB / 0.5088 GB, free: 84.93 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.457e-05/1.009, allocations: 5.188 kB / 0.5088 GB, free: 84.93 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.083e-05/1.009, allocations: 11.28 kB / 0.5088 GB, free: 84.93 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01324/1.022, allocations: 5.681 MB / 0.5143 GB, free: 84.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.524e-05/1.022, allocations: 3.5 kB / 0.5143 GB, free: 84.41 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001571/1.024, allocations: 258 kB / 0.5146 GB, free: 84.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002139/1.026, allocations: 0.5812 MB / 0.5151 GB, free: 84.38 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002314/1.026, allocations: 37.86 kB / 0.5152 GB, free: 84.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01063/1.037, allocations: 7.986 MB / 0.523 GB, free: 80.57 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.831e-06/1.037, allocations: 0 / 0.523 GB, free: 80.57 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007276/1.044, allocations: 4.015 MB / 0.5269 GB, free: 79.98 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001035/1.045, allocations: 489 kB / 0.5274 GB, free: 79.88 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003608/1.046, allocations: 29.06 kB / 0.5274 GB, free: 79.88 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001288/1.047, allocations: 102 kB / 0.5275 GB, free: 79.88 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002657/1.047, allocations: 108.7 kB / 0.5276 GB, free: 79.88 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001457/1.048, allocations: 43.81 kB / 0.5276 GB, free: 79.88 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002445/1.05, allocations: 1.307 MB / 0.5289 GB, free: 79.72 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.17e-07/1.05, allocations: 0 / 0.5289 GB, free: 79.72 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002756/1.053, allocations: 0.6101 MB / 0.5295 GB, free: 79.72 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (123): * Single equations (assignments): 120 * 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 {(5,76.0%) 20,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007268/1.054, allocations: 422.7 kB / 0.5299 GB, free: 79.62 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004651/1.058, allocations: 2.515 MB / 0.5324 GB, free: 79.27 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.92e-06/1.058, allocations: 0 / 0.5324 GB, free: 79.27 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002878/1.061, allocations: 1.537 MB / 0.5339 GB, free: 78.93 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002835/1.064, allocations: 490.9 kB / 0.5343 GB, free: 78.9 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009324/1.073, allocations: 4.659 MB / 0.5389 GB, free: 77.85 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002317/1.076, allocations: 2.243 MB / 0.5411 GB, free: 77.1 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008269/1.077, allocations: 159.3 kB / 0.5412 GB, free: 77.09 MB / 394.7 MB Notification: Performance of SimCode: time 1.623e-06/1.077, allocations: 0 / 0.5412 GB, free: 77.09 MB / 394.7 MB Notification: Performance of Templates: time 0.08576/1.162, allocations: 74.7 MB / 0.6142 GB, free: 31.61 MB / 394.7 MB