Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 1.859/1.859, allocations: 205.8 MB / 218.9 MB, free: 9.352 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.942e-05/2.958e-05, allocations: 4 kB / 269.4 MB, free: 6.398 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08671/0.08676, allocations: 47.57 MB / 316.9 MB, free: 6.738 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4426/0.5294, allocations: 118.8 MB / 435.7 MB, free: 2.043 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002646/0.5297, allocations: 90.19 kB / 435.8 MB, free: 1.996 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3022/0.832, allocations: 80.37 MB / 0.5041 GB, free: 7.707 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.4e-06/0.832, allocations: 0 / 0.5041 GB, free: 7.707 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003152/0.8324, allocations: 95.88 kB / 0.5041 GB, free: 7.613 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.0112/0.8436, allocations: 3.447 MB / 0.5075 GB, free: 4.102 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.8437, allocations: 8.031 kB / 0.5075 GB, free: 4.094 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004592/0.8483, allocations: 0.6354 MB / 0.5081 GB, free: 3.453 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01157/0.8599, allocations: 3.368 MB / 0.5114 GB, free: 32 kB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.3072/1.167, allocations: 259.1 kB / 0.5117 GB, free: 88.86 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00126/1.168, allocations: 346 kB / 0.512 GB, free: 88.86 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01152/1.18, allocations: 4.284 MB / 0.5162 GB, free: 88.42 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001177/1.18, allocations: 9.938 kB / 0.5162 GB, free: 88.42 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004857/1.181, allocations: 146.4 kB / 0.5163 GB, free: 88.42 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002109/1.181, allocations: 159.9 kB / 0.5165 GB, free: 88.41 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009837/1.191, allocations: 3.389 MB / 0.5198 GB, free: 88.39 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02975/1.22, allocations: 14.58 MB / 0.534 GB, free: 85.17 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005152/1.226, allocations: 5.325 MB / 0.5392 GB, free: 81.29 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002543/1.228, allocations: 1.267 MB / 0.5405 GB, free: 81.28 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00837/1.237, allocations: 3.853 MB / 0.5442 GB, free: 80.6 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/1.237, allocations: 48.81 kB / 0.5443 GB, free: 80.56 MB / 426.7 MB Notification: Performance of pre-optimization done (n=126): time 5.917e-06/1.237, allocations: 0 / 0.5443 GB, free: 80.56 MB / 426.7 MB Notification: Performance of matching and sorting (n=130): time 0.008707/1.245, allocations: 4.231 MB / 0.5484 GB, free: 79.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.075e-05/1.246, allocations: 71.64 kB / 0.5485 GB, free: 79.43 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00348/1.249, allocations: 1.83 MB / 0.5503 GB, free: 79.05 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002058/1.249, allocations: 48.58 kB / 0.5503 GB, free: 79 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001044/1.25, allocations: 1.653 MB / 0.5519 GB, free: 77.88 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003839/1.251, allocations: 465.1 kB / 0.5524 GB, free: 77.53 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/1.251, allocations: 35.44 kB / 0.5524 GB, free: 77.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001327/1.251, allocations: 379.6 kB / 0.5528 GB, free: 77.17 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001427/1.252, allocations: 0.6959 MB / 0.5535 GB, free: 76.9 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001673/1.254, allocations: 1.283 MB / 0.5547 GB, free: 75.86 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001773/1.256, allocations: 0.9419 MB / 0.5556 GB, free: 75.52 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.364e-05/1.256, allocations: 8.859 kB / 0.5556 GB, free: 75.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=230) (initialization): time 0.004866/1.261, allocations: 2.402 MB / 0.558 GB, free: 74.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.036e-05/1.261, allocations: 14.53 kB / 0.558 GB, free: 74.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-05/1.261, allocations: 17.91 kB / 0.558 GB, free: 74.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004436/1.261, allocations: 139.8 kB / 0.5581 GB, free: 74.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002264/1.264, allocations: 463.8 kB / 0.5586 GB, free: 74.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002437/1.266, allocations: 3.07 MB / 0.5616 GB, free: 71.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002364/1.269, allocations: 113.9 kB / 0.5617 GB, free: 71.63 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002055/1.269, allocations: 83.28 kB / 0.5618 GB, free: 71.61 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (223): * Single equations (assignments): 220 * 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 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000401/1.269, allocations: 223 kB / 0.562 GB, free: 71.45 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003783/1.27, allocations: 217.8 kB / 0.5622 GB, free: 71.33 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004468/1.274, allocations: 2.148 MB / 0.5643 GB, free: 70.33 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.409e-05/1.274, allocations: 13.19 kB / 0.5643 GB, free: 70.33 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.288e-06/1.274, allocations: 6.844 kB / 0.5643 GB, free: 70.33 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.777e-05/1.274, allocations: 7.25 kB / 0.5643 GB, free: 70.33 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01068/1.285, allocations: 5.145 MB / 0.5693 GB, free: 68.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.794e-06/1.285, allocations: 0 / 0.5693 GB, free: 68.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001542/1.286, allocations: 227.2 kB / 0.5696 GB, free: 68.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009999/1.287, allocations: 270.8 kB / 0.5698 GB, free: 67.92 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001476/1.288, allocations: 37.38 kB / 0.5698 GB, free: 67.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006999/1.295, allocations: 7.094 MB / 0.5768 GB, free: 61.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.977e-06/1.295, allocations: 3.5 kB / 0.5768 GB, free: 61.6 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006035/1.301, allocations: 3.302 MB / 0.58 GB, free: 59.82 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001389/1.302, allocations: 472.4 kB / 0.5805 GB, free: 59.51 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003725/1.303, allocations: 23.62 kB / 0.5805 GB, free: 59.49 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001381/1.304, allocations: 81.83 kB / 0.5806 GB, free: 59.47 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002208/1.304, allocations: 102.6 kB / 0.5807 GB, free: 59.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001198/1.304, allocations: 34.88 kB / 0.5807 GB, free: 59.45 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002669/1.307, allocations: 1.39 MB / 0.582 GB, free: 58.87 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.06e-06/1.307, allocations: 0 / 0.582 GB, free: 58.87 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002926/1.31, allocations: 0.6097 MB / 0.5826 GB, free: 58.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,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 (111): * Single equations (assignments): 107 * 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 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007581/1.311, allocations: 0.504 MB / 0.5831 GB, free: 58.64 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003696/1.314, allocations: 1.984 MB / 0.5851 GB, free: 57.77 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.885e-06/1.314, allocations: 0 / 0.5851 GB, free: 57.77 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002448/1.317, allocations: 1.325 MB / 0.5864 GB, free: 57.02 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005049/1.322, allocations: 0.5119 MB / 0.5869 GB, free: 56.86 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01325/1.335, allocations: 4.836 MB / 0.5916 GB, free: 54.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002817/1.338, allocations: 2.483 MB / 0.594 GB, free: 53.73 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002489/1.341, allocations: 498.8 kB / 0.5945 GB, free: 53.68 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006051/1.341, allocations: 160.1 kB / 0.5946 GB, free: 53.66 MB / 426.7 MB Notification: Performance of SimCode: time 2.339e-06/1.341, allocations: 0 / 0.5946 GB, free: 53.66 MB / 426.7 MB Notification: Performance of Templates: time 0.07378/1.415, allocations: 30.6 MB / 0.6245 GB, free: 40.62 MB / 426.7 MB