Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadModel(Modelica): time 1.921/1.921, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.797e-05/3.806e-05, allocations: 4 kB / 292.1 MB, free: 8.344 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08898/0.08904, allocations: 50.42 MB / 342.6 MB, free: 5.91 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.479/0.5681, allocations: 114.6 MB / 457.2 MB, free: 12.08 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003899/0.5685, allocations: 90.89 kB / 457.3 MB, free: 12.03 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3015/0.8701, allocations: 60.16 MB / 0.5053 GB, free: 3.539 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.916e-06/0.8701, allocations: 0 / 0.5053 GB, free: 3.539 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002511/0.8704, allocations: 87.88 kB / 0.5054 GB, free: 3.453 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: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.006931/0.8773, allocations: 2.994 MB / 0.5083 GB, free: 404 kB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.8774, allocations: 12.03 kB / 0.5084 GB, free: 392 kB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001397/0.8788, allocations: 412 kB / 0.5087 GB, free: 15.97 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005496/0.8843, allocations: 2.216 MB / 0.5109 GB, free: 13.7 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000246/0.8846, allocations: 229.9 kB / 0.5111 GB, free: 13.48 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006611/0.8853, allocations: 291.9 kB / 0.5114 GB, free: 13.19 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008176/0.8935, allocations: 3.697 MB / 0.515 GB, free: 9.348 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.761e-05/0.8936, allocations: 15.84 kB / 0.515 GB, free: 9.332 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004226/0.894, allocations: 127.8 kB / 0.5152 GB, free: 9.211 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001937/0.8942, allocations: 145.7 kB / 0.5153 GB, free: 9.066 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007072/0.9013, allocations: 2.963 MB / 0.5182 GB, free: 6.098 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2687/1.17, allocations: 12.2 MB / 0.5301 GB, free: 98.91 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003432/1.174, allocations: 2.064 MB / 0.5321 GB, free: 98.31 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002007/1.176, allocations: 0.9958 MB / 0.5331 GB, free: 98.3 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000382/1.176, allocations: 222.9 kB / 0.5333 GB, free: 98.11 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.196e-05/1.176, allocations: 48.42 kB / 0.5333 GB, free: 98.07 MB / 442.7 MB Notification: Performance of pre-optimization done (n=141): time 4.996e-06/1.176, allocations: 0 / 0.5333 GB, free: 98.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=163): time 0.01812/1.194, allocations: 6.66 MB / 0.5398 GB, free: 97.29 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.22e-05/1.194, allocations: 72.34 kB / 0.5399 GB, free: 97.23 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003895/1.198, allocations: 1.746 MB / 0.5416 GB, free: 97 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003105/1.199, allocations: 54.45 kB / 0.5417 GB, free: 96.97 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001058/1.2, allocations: 1.449 MB / 0.5431 GB, free: 96.5 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000572/1.2, allocations: 0.5557 MB / 0.5436 GB, free: 96.21 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001598/1.2, allocations: 38 kB / 0.5437 GB, free: 96.21 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/1.201, allocations: 392.5 kB / 0.544 GB, free: 95.9 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001888/1.202, allocations: 0.9041 MB / 0.5449 GB, free: 95.89 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002177/1.205, allocations: 1.445 MB / 0.5463 GB, free: 95.27 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002135/1.207, allocations: 1.167 MB / 0.5475 GB, free: 95.25 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-05/1.207, allocations: 7.781 kB / 0.5475 GB, free: 95.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=252) (initialization): time 0.006732/1.214, allocations: 3.094 MB / 0.5505 GB, free: 95.02 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.112e-05/1.214, allocations: 11.38 kB / 0.5505 GB, free: 95.02 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.609e-05/1.214, allocations: 17.91 kB / 0.5505 GB, free: 95.02 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001814/1.215, allocations: 0.5476 MB / 0.5511 GB, free: 95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002278/1.218, allocations: 481 kB / 0.5515 GB, free: 95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008395/1.226, allocations: 6.286 MB / 0.5577 GB, free: 92.36 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002188/1.228, allocations: 143.8 kB / 0.5578 GB, free: 92.35 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002173/1.229, allocations: 84.09 kB / 0.5579 GB, free: 92.35 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (226): * Single equations (assignments): 223 * 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.0004056/1.229, allocations: 229.6 kB / 0.5581 GB, free: 92.23 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004199/1.229, allocations: 221.3 kB / 0.5583 GB, free: 92.11 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005872/1.235, allocations: 2.787 MB / 0.561 GB, free: 91.56 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.604e-05/1.235, allocations: 15.62 kB / 0.561 GB, free: 91.56 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/1.235, allocations: 10.38 kB / 0.5611 GB, free: 91.56 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.028e-05/1.235, allocations: 7.453 kB / 0.5611 GB, free: 91.56 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0125/1.248, allocations: 6.005 MB / 0.5669 GB, free: 89.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.205e-05/1.248, allocations: 3.281 kB / 0.5669 GB, free: 89.22 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001713/1.25, allocations: 290 kB / 0.5672 GB, free: 89.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002173/1.252, allocations: 0.5826 MB / 0.5678 GB, free: 89.06 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001959/1.252, allocations: 43.19 kB / 0.5678 GB, free: 89.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01007/1.262, allocations: 7.969 MB / 0.5756 GB, free: 83.5 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/1.262, allocations: 6.688 kB / 0.5756 GB, free: 83.5 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008195/1.271, allocations: 4.279 MB / 0.5798 GB, free: 81.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00205/1.273, allocations: 0.5042 MB / 0.5803 GB, free: 81.18 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008491/1.274, allocations: 41.08 kB / 0.5803 GB, free: 81.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002725/1.276, allocations: 100.4 kB / 0.5804 GB, free: 81.14 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004722/1.277, allocations: 124.7 kB / 0.5805 GB, free: 81.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002731/1.277, allocations: 51.22 kB / 0.5806 GB, free: 81.11 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004159/1.281, allocations: 1.33 MB / 0.5819 GB, free: 80.56 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.687e-06/1.281, allocations: 0 / 0.5819 GB, free: 80.56 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004849/1.286, allocations: 0.6339 MB / 0.5825 GB, free: 80.49 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * 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.00108/1.287, allocations: 431.3 kB / 0.5829 GB, free: 80.35 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008017/1.295, allocations: 2.658 MB / 0.5855 GB, free: 79.25 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.928e-06/1.295, allocations: 0 / 0.5855 GB, free: 79.25 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004654/1.3, allocations: 1.58 MB / 0.5871 GB, free: 78.52 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005246/1.305, allocations: 0.496 MB / 0.5875 GB, free: 78.38 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01588/1.321, allocations: 4.801 MB / 0.5922 GB, free: 76.38 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003905/1.325, allocations: 2.331 MB / 0.5945 GB, free: 75.37 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003744/1.329, allocations: 0.5214 MB / 0.595 GB, free: 75.32 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001081/1.33, allocations: 159.4 kB / 0.5952 GB, free: 75.3 MB / 442.7 MB Notification: Performance of SimCode: time 2.643e-06/1.33, allocations: 2.531 kB / 0.5952 GB, free: 75.3 MB / 442.7 MB Notification: Performance of Templates: time 0.1076/1.438, allocations: 34.16 MB / 0.6285 GB, free: 55.49 MB / 442.7 MB