Running command: translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadModel(ModelicaTest): time 2.606/2.606, allocations: 270 MB / 283.6 MB, free: 1.77 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.172e-05/3.189e-05, allocations: 4 kB / 348.4 MB, free: 2.648 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3958/0.3958, allocations: 61.88 MB / 410.3 MB, free: 10.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5345/0.9304, allocations: 123.4 MB / 0.5212 GB, free: 50.38 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002763/0.9307, allocations: 75.19 kB / 0.5212 GB, free: 50.38 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2362/1.167, allocations: 62.25 MB / 0.582 GB, free: 38.66 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.818e-06/1.167, allocations: 0 / 0.582 GB, free: 38.66 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002931/1.167, allocations: 82.53 kB / 0.5821 GB, free: 38.64 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.007882/1.175, allocations: 2.92 MB / 0.585 GB, free: 36.93 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/1.175, allocations: 19.64 kB / 0.585 GB, free: 36.92 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001935/1.177, allocations: 401.3 kB / 0.5854 GB, free: 36.73 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006166/1.183, allocations: 2.151 MB / 0.5875 GB, free: 35.82 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002332/1.184, allocations: 213.6 kB / 0.5877 GB, free: 35.8 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001061/1.185, allocations: 290.8 kB / 0.5879 GB, free: 35.79 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009668/1.194, allocations: 3.584 MB / 0.5914 GB, free: 34.91 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001223/1.195, allocations: 7.281 kB / 0.5914 GB, free: 34.9 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004093/1.195, allocations: 123.1 kB / 0.5916 GB, free: 34.89 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001419/1.195, allocations: 136.8 kB / 0.5917 GB, free: 34.88 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007829/1.203, allocations: 2.886 MB / 0.5945 GB, free: 34.21 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0321/1.235, allocations: 11.64 MB / 0.6059 GB, free: 24.97 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007094/1.242, allocations: 2.169 MB / 0.608 GB, free: 22.68 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003015/1.245, allocations: 1.069 MB / 0.609 GB, free: 21.62 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005945/1.246, allocations: 223.5 kB / 0.6092 GB, free: 21.37 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.468e-05/1.246, allocations: 51.88 kB / 0.6093 GB, free: 21.3 MB / 442.7 MB Notification: Performance of pre-optimization done (n=142): time 8.854e-06/1.246, allocations: 0 / 0.6093 GB, free: 21.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=156): time 0.0254/1.272, allocations: 6.06 MB / 0.6152 GB, free: 15.19 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.339e-05/1.272, allocations: 72.66 kB / 0.6153 GB, free: 15.11 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009413/1.281, allocations: 1.694 MB / 0.6169 GB, free: 13.37 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003338/1.282, allocations: 53.64 kB / 0.617 GB, free: 13.31 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001025/1.283, allocations: 1.367 MB / 0.6183 GB, free: 11.93 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005632/1.283, allocations: 0.5353 MB / 0.6188 GB, free: 11.38 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001532/1.283, allocations: 36 kB / 0.6189 GB, free: 11.35 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001263/1.283, allocations: 377.9 kB / 0.6192 GB, free: 10.97 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001696/1.285, allocations: 0.8669 MB / 0.6201 GB, free: 10.11 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002072/1.287, allocations: 1.299 MB / 0.6214 GB, free: 8.625 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002241/1.29, allocations: 1.101 MB / 0.6224 GB, free: 7.527 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-05/1.29, allocations: 4 kB / 0.6224 GB, free: 7.523 MB / 442.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.006524/1.296, allocations: 2.856 MB / 0.6252 GB, free: 4.648 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.266e-05/1.296, allocations: 8 kB / 0.6252 GB, free: 4.641 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.331e-05/1.296, allocations: 16 kB / 0.6252 GB, free: 4.625 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001407/1.298, allocations: 446.5 kB / 0.6257 GB, free: 4.18 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002567/1.3, allocations: 463.3 kB / 0.6261 GB, free: 3.727 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009616/1.31, allocations: 7.031 MB / 0.633 GB, free: 12.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002393/1.312, allocations: 131.8 kB / 0.6331 GB, free: 12.17 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000426/1.313, allocations: 71.98 kB / 0.6332 GB, free: 12.1 MB / 458.7 MB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "Stator space phasor current / rotor fixed frame" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (204): * Single equations (assignments): 201 * 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 {(2,100.0%) 9,(1,100.0%) 2,(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005444/1.313, allocations: 206 kB / 0.6334 GB, free: 11.89 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000653/1.314, allocations: 209.4 kB / 0.6336 GB, free: 11.68 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007826/1.322, allocations: 2.961 MB / 0.6365 GB, free: 8.691 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.762e-05/1.322, allocations: 20 kB / 0.6365 GB, free: 8.672 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.766e-05/1.322, allocations: 8 kB / 0.6365 GB, free: 8.664 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-05/1.322, allocations: 7.969 kB / 0.6365 GB, free: 8.656 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02471/1.347, allocations: 6.127 MB / 0.6425 GB, free: 2.418 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.164e-05/1.347, allocations: 7.984 kB / 0.6425 GB, free: 2.41 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003029/1.35, allocations: 231.7 kB / 0.6427 GB, free: 2.184 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006079/1.356, allocations: 0.8258 MB / 0.6435 GB, free: 1.348 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004914/1.357, allocations: 43.97 kB / 0.6436 GB, free: 1.305 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03409/1.391, allocations: 10.2 MB / 0.6535 GB, free: 6.699 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.576e-05/1.391, allocations: 8 kB / 0.6535 GB, free: 6.691 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01929/1.41, allocations: 4.378 MB / 0.6578 GB, free: 2.152 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002311/1.412, allocations: 0.4905 MB / 0.6583 GB, free: 1.641 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006525/1.413, allocations: 32 kB / 0.6583 GB, free: 1.609 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003139/1.416, allocations: 103.9 kB / 0.6584 GB, free: 1.508 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007077/1.417, allocations: 121 kB / 0.6585 GB, free: 1.391 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003244/1.417, allocations: 43.98 kB / 0.6586 GB, free: 1.348 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005218/1.423, allocations: 1.306 MB / 0.6598 GB, free: 12 kB / 474.7 MB Notification: Performance of sort global known variables: time 1.407e-06/1.423, allocations: 7.938 kB / 0.6598 GB, free: 4 kB / 474.7 MB Notification: Performance of remove unused functions: time 0.003953/1.427, allocations: 0.6328 MB / 0.6605 GB, free: 15.37 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 110 * 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 {(2,100.0%) 9,(1,100.0%) 2,(3,88.9%) 34} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001217/1.428, allocations: 426 kB / 0.6609 GB, free: 14.96 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006192/1.434, allocations: 2.543 MB / 0.6634 GB, free: 12.39 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.84e-06/1.434, allocations: 4.062 kB / 0.6634 GB, free: 12.38 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003837/1.438, allocations: 1.601 MB / 0.6649 GB, free: 10.75 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003212/1.441, allocations: 0.4898 MB / 0.6654 GB, free: 10.26 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01248/1.454, allocations: 4.713 MB / 0.67 GB, free: 5.473 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003714/1.457, allocations: 2.276 MB / 0.6722 GB, free: 3.164 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002546/1.46, allocations: 457.8 kB / 0.6727 GB, free: 2.715 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008642/1.461, allocations: 155.4 kB / 0.6728 GB, free: 2.562 MB / 490.7 MB Notification: Performance of SimCode: time 1.763e-06/1.461, allocations: 0 / 0.6728 GB, free: 2.562 MB / 490.7 MB Notification: Performance of Templates: time 0.09521/1.556, allocations: 34.68 MB / 0.7067 GB, free: 184 kB / 0.5105 GB