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.847/1.847, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.135e-05/4.158e-05, allocations: 2.938 kB / 255.3 MB, free: 3.184 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07571/0.07578, allocations: 44.51 MB / 299.8 MB, free: 6.633 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3702/0.446, allocations: 108.3 MB / 408.1 MB, free: 14.8 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000258/0.4463, allocations: 89.91 kB / 408.2 MB, free: 14.79 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2277/0.674, allocations: 58.27 MB / 466.5 MB, free: 6.145 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.268e-06/0.6741, allocations: 0 / 466.5 MB, free: 6.145 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003192/0.6744, allocations: 79.88 kB / 466.6 MB, free: 6.066 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.008986/0.6834, allocations: 2.876 MB / 469.4 MB, free: 3.125 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.6835, allocations: 8.031 kB / 469.5 MB, free: 3.117 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002073/0.6856, allocations: 399.6 kB / 469.8 MB, free: 2.723 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006735/0.6923, allocations: 2.168 MB / 472 MB, free: 0.5 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002884/0.6927, allocations: 217.6 kB / 472.2 MB, free: 292 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001025/0.6937, allocations: 283.9 kB / 472.5 MB, free: 8 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01009/0.7038, allocations: 3.586 MB / 476.1 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001102/0.704, allocations: 11.89 kB / 476.1 MB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004682/0.7045, allocations: 116 kB / 476.2 MB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001986/0.7047, allocations: 137.5 kB / 476.3 MB, free: 12.01 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008176/0.7129, allocations: 2.86 MB / 479.2 MB, free: 9.141 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02895/0.7419, allocations: 11.64 MB / 490.8 MB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003889/0.7458, allocations: 1.928 MB / 492.8 MB, free: 11.12 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002077/0.7479, allocations: 0.9294 MB / 493.7 MB, free: 10.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004815/0.7485, allocations: 219.5 kB / 493.9 MB, free: 9.945 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.59e-05/0.7485, allocations: 47.88 kB / 494 MB, free: 9.891 MB / 378.7 MB Notification: Performance of pre-optimization done (n=127): time 5.12e-06/0.7485, allocations: 0 / 494 MB, free: 9.891 MB / 378.7 MB Notification: Performance of matching and sorting (n=148): time 0.01924/0.7678, allocations: 6.352 MB / 0.4886 GB, free: 3.484 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.329e-05/0.7679, allocations: 72.66 kB / 0.4887 GB, free: 3.402 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004127/0.772, allocations: 1.708 MB / 0.4903 GB, free: 1.652 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003132/0.7724, allocations: 53.64 kB / 0.4904 GB, free: 1.594 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001307/0.7737, allocations: 1.322 MB / 0.4917 GB, free: 264 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007416/0.7745, allocations: 0.5006 MB / 0.4922 GB, free: 15.75 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001588/0.7747, allocations: 36 kB / 0.4922 GB, free: 15.71 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002913/0.775, allocations: 390.7 kB / 0.4926 GB, free: 15.32 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001962/0.7769, allocations: 0.8513 MB / 0.4934 GB, free: 14.47 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002567/0.7795, allocations: 1.385 MB / 0.4947 GB, free: 12.85 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002566/0.7821, allocations: 1.09 MB / 0.4958 GB, free: 11.76 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.565e-05/0.7822, allocations: 8 kB / 0.4958 GB, free: 11.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.00721/0.7894, allocations: 2.849 MB / 0.4986 GB, free: 8.883 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.088e-05/0.7895, allocations: 16.42 kB / 0.4986 GB, free: 8.867 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.684e-05/0.7895, allocations: 20 kB / 0.4986 GB, free: 8.848 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001955/0.7915, allocations: 0.5489 MB / 0.4992 GB, free: 8.289 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00245/0.794, allocations: 443.3 kB / 0.4996 GB, free: 7.855 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01113/0.8051, allocations: 6.257 MB / 0.5057 GB, free: 1.324 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002342/0.8075, allocations: 143.6 kB / 0.5058 GB, free: 1.184 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003156/0.8079, allocations: 83.98 kB / 0.5059 GB, free: 1.102 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.0005034/0.8084, allocations: 216.3 kB / 0.5061 GB, free: 0.8828 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005945/0.809, allocations: 205.5 kB / 0.5063 GB, free: 0.6797 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.236/1.045, allocations: 2.61 MB / 0.5089 GB, free: 84.74 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.051e-05/1.045, allocations: 14.44 kB / 0.5089 GB, free: 84.74 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.689e-05/1.045, allocations: 5.469 kB / 0.5089 GB, free: 84.74 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.653e-05/1.045, allocations: 11.55 kB / 0.5089 GB, free: 84.74 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01441/1.06, allocations: 5.688 MB / 0.5145 GB, free: 84.22 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.501e-05/1.06, allocations: 3.562 kB / 0.5145 GB, free: 84.22 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001642/1.061, allocations: 255.4 kB / 0.5147 GB, free: 84.22 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002401/1.064, allocations: 0.5849 MB / 0.5153 GB, free: 84.19 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003291/1.064, allocations: 42.28 kB / 0.5153 GB, free: 84.19 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01089/1.075, allocations: 7.975 MB / 0.5231 GB, free: 80.37 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.896e-06/1.075, allocations: 3.594 kB / 0.5231 GB, free: 80.37 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00819/1.083, allocations: 4.011 MB / 0.527 GB, free: 79.78 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001591/1.085, allocations: 488.6 kB / 0.5275 GB, free: 79.69 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007183/1.086, allocations: 32.77 kB / 0.5275 GB, free: 79.69 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002041/1.088, allocations: 100.9 kB / 0.5276 GB, free: 79.69 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004506/1.088, allocations: 108.2 kB / 0.5277 GB, free: 79.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001635/1.088, allocations: 44 kB / 0.5278 GB, free: 79.68 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003083/1.091, allocations: 1.305 MB / 0.529 GB, free: 79.52 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.225e-06/1.092, allocations: 0 / 0.529 GB, free: 79.52 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003187/1.095, allocations: 0.6099 MB / 0.5296 GB, free: 79.52 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.0008162/1.096, allocations: 413 kB / 0.53 GB, free: 79.42 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004927/1.101, allocations: 2.561 MB / 0.5325 GB, free: 79.05 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.07e-06/1.101, allocations: 0 / 0.5325 GB, free: 79.05 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003271/1.104, allocations: 1.579 MB / 0.5341 GB, free: 78.69 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003491/1.107, allocations: 496.5 kB / 0.5345 GB, free: 78.66 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01143/1.119, allocations: 4.665 MB / 0.5391 GB, free: 77.61 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002607/1.121, allocations: 2.24 MB / 0.5413 GB, free: 76.86 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008674/1.122, allocations: 161.2 kB / 0.5414 GB, free: 76.86 MB / 394.7 MB Notification: Performance of SimCode: time 2.159e-06/1.122, allocations: 0 / 0.5414 GB, free: 76.86 MB / 394.7 MB Notification: Performance of Templates: time 0.09394/1.216, allocations: 74.98 MB / 0.6147 GB, free: 30.72 MB / 394.7 MB