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.646/1.646, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.958e-05/2.969e-05, allocations: 8 kB / 225 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2128/0.2129, allocations: 38.76 MB / 263.8 MB, free: 9.879 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1518/0.3647, allocations: 103 MB / 366.7 MB, free: 2.723 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002518/0.365, allocations: 91.94 kB / 366.8 MB, free: 2.633 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3796/0.7447, allocations: 56.31 MB / 423.2 MB, free: 52.11 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.292e-06/0.7447, allocations: 7.875 kB / 423.2 MB, free: 52.11 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002586/0.745, allocations: 79.88 kB / 423.2 MB, free: 52.03 MB / 314.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.007572/0.7526, allocations: 2.837 MB / 426.1 MB, free: 49.13 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.492e-05/0.7526, allocations: 12.03 kB / 426.1 MB, free: 49.12 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001871/0.7545, allocations: 403.6 kB / 426.5 MB, free: 48.72 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005011/0.7596, allocations: 1.91 MB / 428.4 MB, free: 46.75 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002062/0.7598, allocations: 217.7 kB / 428.6 MB, free: 46.54 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008506/0.7607, allocations: 279.9 kB / 428.9 MB, free: 46.27 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008393/0.7691, allocations: 3.571 MB / 432.4 MB, free: 42.55 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001044/0.7692, allocations: 4 kB / 432.5 MB, free: 42.55 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003864/0.7696, allocations: 120 kB / 432.6 MB, free: 42.43 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000144/0.7698, allocations: 137.5 kB / 432.7 MB, free: 42.29 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007147/0.777, allocations: 2.83 MB / 435.5 MB, free: 39.46 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02361/0.8006, allocations: 11.52 MB / 447.1 MB, free: 27.6 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003024/0.8037, allocations: 1.891 MB / 448.9 MB, free: 25.59 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001715/0.8054, allocations: 0.9207 MB / 449.9 MB, free: 24.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003337/0.8058, allocations: 138.1 kB / 450 MB, free: 24.52 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.421e-05/0.8059, allocations: 47.55 kB / 450 MB, free: 24.46 MB / 314.7 MB Notification: Performance of pre-optimization done (n=126): time 4.559e-06/0.8059, allocations: 0 / 450 MB, free: 24.46 MB / 314.7 MB Notification: Performance of matching and sorting (n=147): time 0.0162/0.8221, allocations: 6.323 MB / 456.4 MB, free: 18.08 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.376e-05/0.8222, allocations: 68.72 kB / 456.4 MB, free: 18 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00275/0.8249, allocations: 1.541 MB / 458 MB, free: 16.42 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002505/0.8252, allocations: 49.7 kB / 458 MB, free: 16.36 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007033/0.8259, allocations: 1.302 MB / 459.3 MB, free: 15.05 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004127/0.8263, allocations: 0.5007 MB / 459.8 MB, free: 14.54 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001417/0.8265, allocations: 36 kB / 459.9 MB, free: 14.5 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.8266, allocations: 386.7 kB / 460.2 MB, free: 14.12 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001528/0.8282, allocations: 0.8513 MB / 461.1 MB, free: 13.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001762/0.83, allocations: 1.373 MB / 462.5 MB, free: 11.66 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001899/0.8319, allocations: 1.098 MB / 463.6 MB, free: 10.56 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.309e-05/0.8319, allocations: 4 kB / 463.6 MB, free: 10.55 MB / 314.7 MB Notification: Performance of matching and sorting (n=233) (initialization): time 0.005474/0.8374, allocations: 2.791 MB / 466.4 MB, free: 7.746 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.152e-05/0.8375, allocations: 12 kB / 466.4 MB, free: 7.734 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.473e-05/0.8375, allocations: 16 kB / 466.4 MB, free: 7.719 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00173/0.8392, allocations: 0.5492 MB / 466.9 MB, free: 7.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00205/0.8413, allocations: 435.3 kB / 467.4 MB, free: 6.734 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008045/0.8494, allocations: 6.271 MB / 473.6 MB, free: 192 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001956/0.8514, allocations: 135.7 kB / 473.8 MB, free: 56 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002635/0.8517, allocations: 80.05 kB / 473.8 MB, free: 15.97 MB / 330.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 (207): * Single equations (assignments): 204 * 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.0004853/0.8522, allocations: 221.9 kB / 474.1 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004992/0.8527, allocations: 209.4 kB / 474.3 MB, free: 15.54 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006326/0.859, allocations: 2.601 MB / 476.9 MB, free: 12.92 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.53e-05/0.8591, allocations: 16 kB / 476.9 MB, free: 12.91 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.291e-05/0.8591, allocations: 4 kB / 476.9 MB, free: 12.9 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.021e-05/0.8591, allocations: 7.969 kB / 476.9 MB, free: 12.89 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01452/0.8737, allocations: 5.593 MB / 482.5 MB, free: 7.188 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.886e-05/0.8737, allocations: 4 kB / 482.5 MB, free: 7.184 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001638/0.8754, allocations: 251.6 kB / 482.7 MB, free: 6.938 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002302/0.8777, allocations: 0.5848 MB / 483.3 MB, free: 6.344 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002725/0.878, allocations: 39.98 kB / 483.4 MB, free: 6.305 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01327/0.8913, allocations: 7.96 MB / 491.3 MB, free: 13.94 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.377e-06/0.8914, allocations: 4 kB / 491.3 MB, free: 13.94 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008859/0.9002, allocations: 3.992 MB / 495.3 MB, free: 9.781 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001499/0.9018, allocations: 462.4 kB / 495.8 MB, free: 9.309 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004595/0.9023, allocations: 47.94 kB / 495.8 MB, free: 9.262 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001391/0.9037, allocations: 91.88 kB / 495.9 MB, free: 9.172 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003199/0.904, allocations: 109.4 kB / 496 MB, free: 9.066 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001638/0.9042, allocations: 43.98 kB / 496.1 MB, free: 9.023 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002706/0.9069, allocations: 1.177 MB / 497.2 MB, free: 7.816 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.52e-07/0.907, allocations: 4 kB / 497.2 MB, free: 7.812 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003132/0.9101, allocations: 0.6016 MB / 497.8 MB, free: 7.211 MB / 346.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 (122): * Single equations (assignments): 119 * 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.0009065/0.911, allocations: 425.1 kB / 498.2 MB, free: 6.805 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005806/0.9169, allocations: 2.504 MB / 0.489 GB, free: 4.262 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/0.9169, allocations: 0 / 0.489 GB, free: 4.262 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003495/0.9204, allocations: 1.503 MB / 0.4905 GB, free: 2.73 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002957/0.9234, allocations: 470 kB / 0.4909 GB, free: 2.27 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.207/1.13, allocations: 4.51 MB / 0.4953 GB, free: 82.85 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002414/1.133, allocations: 2.229 MB / 0.4975 GB, free: 82.11 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008327/1.134, allocations: 147.3 kB / 0.4977 GB, free: 82.11 MB / 346.7 MB Notification: Performance of SimCode: time 1.676e-06/1.134, allocations: 2.094 kB / 0.4977 GB, free: 82.11 MB / 346.7 MB Notification: Performance of Templates: time 0.08786/1.222, allocations: 72.65 MB / 0.5686 GB, free: 39.71 MB / 346.7 MB