Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrl,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrl") Notification: Performance of loadModel(PowerSystems): time 2.312/2.312, allocations: 233 MB / 246.1 MB, free: 14.81 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.515e-05/3.528e-05, allocations: 4 kB / 302.2 MB, free: 7.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09669/0.09674, allocations: 53.23 MB / 355.4 MB, free: 2.133 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.405/0.5018, allocations: 116 MB / 471.5 MB, free: 1.578 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002902/0.5021, allocations: 91.95 kB / 471.6 MB, free: 1.488 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1495/0.6516, allocations: 34.7 MB / 0.4944 GB, free: 14.49 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.958e-06/0.6516, allocations: 0 / 0.4944 GB, free: 14.49 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.492e-05/0.6518, allocations: 28 kB / 0.4944 GB, free: 14.46 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: 295 * Number of variables: 295 Notification: Performance of Generate backend data structure: time 0.004705/0.6565, allocations: 1.559 MB / 0.4959 GB, free: 12.82 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.6565, allocations: 8.031 kB / 0.4959 GB, free: 12.81 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00103/0.6576, allocations: 163.2 kB / 0.4961 GB, free: 12.65 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004534/0.6621, allocations: 1.241 MB / 0.4973 GB, free: 11.36 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003255/0.6625, allocations: 199.2 kB / 0.4975 GB, free: 11.15 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005897/0.6631, allocations: 119.9 kB / 0.4976 GB, free: 11.03 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004412/0.6675, allocations: 1.675 MB / 0.4993 GB, free: 9.254 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.31e-05/0.6676, allocations: 0 / 0.4993 GB, free: 9.254 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002178/0.6679, allocations: 44 kB / 0.4993 GB, free: 9.211 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001897/0.6681, allocations: 73.97 kB / 0.4994 GB, free: 9.137 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003535/0.6716, allocations: 1.234 MB / 0.5006 GB, free: 7.902 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0133/0.685, allocations: 6.162 MB / 0.5066 GB, free: 1.488 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002114/0.6871, allocations: 0.827 MB / 0.5074 GB, free: 0.6367 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001314/0.6885, allocations: 0.5359 MB / 0.5079 GB, free: 96 kB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.443e-05/0.6886, allocations: 17.55 kB / 0.5079 GB, free: 80 kB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001536/0.6901, allocations: 0.6729 MB / 0.5086 GB, free: 15.38 MB / 458.7 MB Notification: Performance of pre-optimization done (n=87): time 5.283e-06/0.6902, allocations: 0 / 0.5086 GB, free: 15.38 MB / 458.7 MB Notification: Performance of matching and sorting (n=92): time 0.00885/0.699, allocations: 3.426 MB / 0.5119 GB, free: 11.83 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001326/0.6992, allocations: 157.3 kB / 0.5121 GB, free: 11.65 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001347/0.7006, allocations: 0.6759 MB / 0.5127 GB, free: 10.97 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002222/0.7008, allocations: 53.7 kB / 0.5128 GB, free: 10.91 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006334/0.7015, allocations: 0.534 MB / 0.5133 GB, free: 10.37 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004752/0.702, allocations: 311.6 kB / 0.5136 GB, free: 10.06 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.403e-05/0.7021, allocations: 20 kB / 0.5136 GB, free: 10.04 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003067/0.7024, allocations: 414.7 kB / 0.514 GB, free: 9.625 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001199/0.7036, allocations: 0.5375 MB / 0.5146 GB, free: 9.086 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001516/0.7051, allocations: 0.8484 MB / 0.5154 GB, free: 8.102 MB / 458.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.00673/0.7119, allocations: 2 MB / 0.5173 GB, free: 6.07 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.409e-05/0.7119, allocations: 7.938 kB / 0.5173 GB, free: 6.062 MB / 458.7 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.005697/0.7176, allocations: 2.161 MB / 0.5195 GB, free: 3.871 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2505/0.9682, allocations: 3.803 MB / 0.5232 GB, free: 125.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.799e-05/0.9683, allocations: 9.688 kB / 0.5232 GB, free: 125.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003011/0.9713, allocations: 0.8655 MB / 0.524 GB, free: 125.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009772/0.9723, allocations: 173.2 kB / 0.5242 GB, free: 125.5 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004527/0.9769, allocations: 3.44 MB / 0.5275 GB, free: 123.6 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001361/0.9783, allocations: 92.59 kB / 0.5276 GB, free: 123.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002238/0.9785, allocations: 74.08 kB / 0.5277 GB, free: 123.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.9786, allocations: 6.625 kB / 0.5277 GB, free: 123.6 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005341/0.9839, allocations: 2.251 MB / 0.5299 GB, free: 123.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.76e-05/0.984, allocations: 12.34 kB / 0.5299 GB, free: 123.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002831/0.9868, allocations: 0.8624 MB / 0.5308 GB, free: 123.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000995/0.9879, allocations: 174.4 kB / 0.5309 GB, free: 123.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004401/0.9923, allocations: 3.418 MB / 0.5343 GB, free: 121.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001335/0.9937, allocations: 82.03 kB / 0.5343 GB, free: 121.5 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002313/0.9939, allocations: 75.56 kB / 0.5344 GB, free: 121.5 MB / 458.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.sm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 28 (system.initime,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.sm_ctrl.inverter.modulator.gates[1],sm_ctrl.inverter.modulator.gates[1],$PRE.sm_ctrl.inverter.modulator.gates[2],sm_ctrl.inverter.modulator.gates[2],$PRE.sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[3],$PRE.sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.gates[4],$PRE.sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[5],$PRE.sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.gates[6],$PRE.sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.sigdel_t[1],$PRE.sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.sigdel_t[2],$PRE.sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.sigdel_t[3],$PRE.sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.t0[1],$PRE.sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.t0[2],$PRE.sm_ctrl.inverter.modulator.t0[3],sm_ctrl.inverter.modulator.t0[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (100): * Single equations (assignments): 97 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 1 {2 30} Notification: Performance of prepare postOptimizeDAE: time 0.0004491/0.9944, allocations: 202.4 kB / 0.5346 GB, free: 121.4 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002902/0.9947, allocations: 101.2 kB / 0.5347 GB, free: 121.4 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002779/0.9975, allocations: 1.224 MB / 0.5359 GB, free: 121.2 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.622e-05/0.9976, allocations: 17.22 kB / 0.5359 GB, free: 121.2 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.032e-06/0.9976, allocations: 2.25 kB / 0.5359 GB, free: 121.2 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.586e-05/0.9976, allocations: 6.062 kB / 0.5359 GB, free: 121.2 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005537/1.003, allocations: 2.609 MB / 0.5385 GB, free: 120.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/1.003, allocations: 3.281 kB / 0.5385 GB, free: 120.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001183/1.004, allocations: 152.3 kB / 0.5386 GB, free: 120.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002416/1.005, allocations: 54.08 kB / 0.5387 GB, free: 120.7 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001494/1.005, allocations: 32.27 kB / 0.5387 GB, free: 120.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001971/1.007, allocations: 2.752 MB / 0.5414 GB, free: 118.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.85e-06/1.007, allocations: 4 kB / 0.5414 GB, free: 118.1 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004058/1.011, allocations: 1.887 MB / 0.5432 GB, free: 117.8 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007091/1.012, allocations: 294.2 kB / 0.5435 GB, free: 117.7 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003433/1.012, allocations: 91.69 kB / 0.5436 GB, free: 117.7 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001164/1.013, allocations: 110.9 kB / 0.5437 GB, free: 117.7 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002166/1.013, allocations: 69.88 kB / 0.5438 GB, free: 117.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001164/1.014, allocations: 32.53 kB / 0.5438 GB, free: 117.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0009716/1.015, allocations: 0.5186 MB / 0.5443 GB, free: 117.6 MB / 458.7 MB Notification: Performance of sort global known variables: time 8.75e-07/1.015, allocations: 0 / 0.5443 GB, free: 117.6 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002523/1.017, allocations: 476.6 kB / 0.5448 GB, free: 117.6 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sm_ctrl.motor.phi_el,sm_ctrl.motor.w_el,sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],PI_i_q.I.y) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,sm_ctrl.inverter.modulator.gates[1],sm_ctrl.inverter.modulator.gates[2],sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.t0[3],system.initime) * Number of discrete states: 12 (sm_ctrl.inverter.modulator.t0[3],sm_ctrl.inverter.modulator.sigdel_t[3],sm_ctrl.inverter.modulator.gates[5],sm_ctrl.inverter.modulator.gates[6],sm_ctrl.inverter.modulator.t0[2],sm_ctrl.inverter.modulator.sigdel_t[2],sm_ctrl.inverter.modulator.gates[3],sm_ctrl.inverter.modulator.gates[4],sm_ctrl.inverter.modulator.t0[1],sm_ctrl.inverter.modulator.sigdel_t[1],sm_ctrl.inverter.modulator.gates[1],sm_ctrl.inverter.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 70 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000531/1.018, allocations: 259.4 kB / 0.545 GB, free: 117.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005527/1.023, allocations: 2.748 MB / 0.5477 GB, free: 116.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.667e-06/1.023, allocations: 2.516 kB / 0.5477 GB, free: 116.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001517/1.025, allocations: 0.7244 MB / 0.5484 GB, free: 116.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001624/1.026, allocations: 233.4 kB / 0.5486 GB, free: 116.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004893/1.031, allocations: 2.103 MB / 0.5507 GB, free: 115.4 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001122/1.033, allocations: 1.249 MB / 0.5519 GB, free: 114.6 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001844/1.034, allocations: 392.5 kB / 0.5523 GB, free: 114.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003073/1.035, allocations: 65.61 kB / 0.5523 GB, free: 114.6 MB / 458.7 MB Notification: Performance of SimCode: time 2.797e-06/1.035, allocations: 0 / 0.5523 GB, free: 114.6 MB / 458.7 MB Notification: Performance of Templates: time 0.04329/1.078, allocations: 19.87 MB / 0.5718 GB, free: 113.5 MB / 458.7 MB