Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_Y_D") Notification: Performance of loadModel(PowerSystems): time 2.385/2.385, allocations: 232.9 MB / 248.1 MB, free: 10.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.025e-05/3.043e-05, allocations: 7.984 kB / 304.4 MB, free: 1.961 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3504/0.3505, allocations: 53.22 MB / 357.6 MB, free: 15.49 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_Y_D): time 0.009773/0.3603, allocations: 5.61 MB / 363.2 MB, free: 9.852 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009853/0.3702, allocations: 4.125 MB / 367.3 MB, free: 5.715 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008967/0.3712, allocations: 39.75 kB / 367.4 MB, free: 5.676 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005682/0.3769, allocations: 1.527 MB / 368.9 MB, free: 4.145 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001526/0.3785, allocations: 338.9 kB / 369.2 MB, free: 3.812 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000962/0.3794, allocations: 231.6 kB / 369.4 MB, free: 3.586 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009393/0.3804, allocations: 383.5 kB / 369.8 MB, free: 3.211 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001549/0.382, allocations: 0.7068 MB / 370.5 MB, free: 2.473 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006794/0.3827, allocations: 271.2 kB / 370.8 MB, free: 2.207 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006692/0.3834, allocations: 299.1 kB / 371.1 MB, free: 1.914 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003569/0.3837, allocations: 67.83 kB / 371.1 MB, free: 1.848 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001423/0.3839, allocations: 24 kB / 371.2 MB, free: 1.824 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003951/0.3843, allocations: 251.4 kB / 371.4 MB, free: 1.578 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002333/0.3845, allocations: 64 kB / 371.5 MB, free: 1.516 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001265/0.3858, allocations: 0.7986 MB / 372.3 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.3858, allocations: 0 / 372.3 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.706e-06/0.3859, allocations: 0 / 372.3 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.958e-05/0.3859, allocations: 4 kB / 372.3 MB, free: 0.7109 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 150 * Number of variables: 150 Notification: Performance of Generate backend data structure: time 0.002525/0.3884, allocations: 0.8304 MB / 373.1 MB, free: 15.82 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.3885, allocations: 8.031 kB / 373.1 MB, free: 15.82 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007415/0.3892, allocations: 111 kB / 373.2 MB, free: 15.71 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002259/0.3915, allocations: 0.5915 MB / 373.8 MB, free: 15.07 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001681/0.3917, allocations: 79 kB / 373.9 MB, free: 14.99 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002514/0.392, allocations: 64 kB / 374 MB, free: 14.93 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002779/0.3948, allocations: 0.8059 MB / 374.8 MB, free: 14.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.924e-05/0.3949, allocations: 3.906 kB / 374.8 MB, free: 14.08 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001331/0.395, allocations: 27.95 kB / 374.8 MB, free: 14.05 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000299/0.3954, allocations: 53.28 kB / 374.8 MB, free: 14 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002208/0.3976, allocations: 0.575 MB / 375.4 MB, free: 13.43 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009101/0.4067, allocations: 2.935 MB / 378.4 MB, free: 10.38 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00191/0.4087, allocations: 430.1 kB / 378.8 MB, free: 9.945 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.482e-05/0.4088, allocations: 4.391 kB / 378.8 MB, free: 9.941 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001126/0.41, allocations: 348.1 kB / 379.1 MB, free: 9.578 MB / 314.7 MB Notification: Performance of pre-optimization done (n=42): time 4.378e-06/0.41, allocations: 0 / 379.1 MB, free: 9.578 MB / 314.7 MB Notification: Performance of matching and sorting (n=46): time 0.01705/0.427, allocations: 2.56 MB / 381.7 MB, free: 6.801 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001281/0.4272, allocations: 140.4 kB / 381.8 MB, free: 6.633 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006821/0.4341, allocations: 397 kB / 382.2 MB, free: 6.234 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001655/0.4343, allocations: 33.7 kB / 382.2 MB, free: 6.195 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000484/0.4348, allocations: 370.3 kB / 382.6 MB, free: 5.832 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003089/0.4351, allocations: 161.8 kB / 382.8 MB, free: 5.672 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.696e-05/0.4352, allocations: 8 kB / 382.8 MB, free: 5.664 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002083/0.4354, allocations: 338.8 kB / 383.1 MB, free: 5.324 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009088/0.4363, allocations: 233.2 kB / 383.3 MB, free: 5.09 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001065/0.4374, allocations: 390.2 kB / 383.7 MB, free: 4.645 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01121/0.4486, allocations: 0.7619 MB / 384.5 MB, free: 3.855 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.806e-06/0.4487, allocations: 0 / 384.5 MB, free: 3.855 MB / 314.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.01006/0.4588, allocations: 0.9438 MB / 385.4 MB, free: 2.895 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.408e-05/0.4589, allocations: 33.7 kB / 385.4 MB, free: 2.855 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.192e-05/0.459, allocations: 8.188 kB / 385.4 MB, free: 2.848 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002227/0.4612, allocations: 310.2 kB / 385.8 MB, free: 2.539 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002543/0.4638, allocations: 179.7 kB / 385.9 MB, free: 2.363 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0175/0.4813, allocations: 4.989 MB / 390.9 MB, free: 13.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006103/0.482, allocations: 27.98 kB / 390.9 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.007e-05/0.4821, allocations: 24 kB / 391 MB, free: 13.06 MB / 330.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.asm_Y_D.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (system.initime,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$PRE.relay1.y,relay1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 1 * 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%) 4} * Non-linear torn systems: 1 {3 15} Notification: Performance of prepare postOptimizeDAE: time 0.0006116/0.4827, allocations: 299.3 kB / 391.3 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.4828, allocations: 51.34 kB / 391.3 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001912/0.4847, allocations: 0.8098 MB / 392.1 MB, free: 11.83 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/0.4848, allocations: 4 kB / 392.1 MB, free: 11.83 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.4848, allocations: 0 / 392.1 MB, free: 11.83 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.012e-05/0.4848, allocations: 3.984 kB / 392.1 MB, free: 11.82 MB / 330.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003807/0.4886, allocations: 1.692 MB / 393.8 MB, free: 10 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.705e-06/0.4887, allocations: 4 kB / 393.8 MB, free: 10 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002482/0.4912, allocations: 191.8 kB / 394 MB, free: 9.812 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003715/0.4915, allocations: 78.47 kB / 394.1 MB, free: 9.727 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.678e-05/0.4916, allocations: 19.98 kB / 394.1 MB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004052/0.4957, allocations: 3.965 MB / 398.1 MB, free: 5.344 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.4957, allocations: 3.938 kB / 398.1 MB, free: 5.34 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002569/0.4983, allocations: 1.158 MB / 399.2 MB, free: 4.086 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003614/0.4987, allocations: 172.4 kB / 399.4 MB, free: 3.898 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001309/0.4988, allocations: 8 kB / 399.4 MB, free: 3.891 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004689/0.4993, allocations: 23.98 kB / 399.4 MB, free: 3.867 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/0.4995, allocations: 35.69 kB / 399.5 MB, free: 3.832 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.533e-05/0.4995, allocations: 23.92 kB / 399.5 MB, free: 3.809 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0005633/0.5001, allocations: 307.1 kB / 399.8 MB, free: 3.512 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5001, allocations: 4 kB / 399.8 MB, free: 3.508 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009576/0.5011, allocations: 164 kB / 400 MB, free: 3.348 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (asm_Y_D.motor.i[3],asm_Y_D.motor.phi_el,asm_Y_D.motor.w_el,asm_Y_D.motor.psi_s[1],asm_Y_D.motor.psi_s[2],asm_Y_D.motor.psi_rd[1],asm_Y_D.motor.psi_rq[1]) * Number of discrete variables: 4 ($whenCondition1,relay1.y,relay1.cnt,system.initime) * Number of discrete states: 3 (relay1.y,relay1.cnt,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * 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 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002204/0.5013, allocations: 120.5 kB / 400.1 MB, free: 3.219 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002959/0.5043, allocations: 0.9728 MB / 401 MB, free: 2.207 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.5043, allocations: 0 / 401 MB, free: 2.207 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001268/0.5056, allocations: 0.6513 MB / 401.7 MB, free: 1.504 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009753/0.5066, allocations: 121.2 kB / 401.8 MB, free: 1.391 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004545/0.5112, allocations: 2.065 MB / 403.9 MB, free: 15.28 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008788/0.5121, allocations: 0.9955 MB / 404.9 MB, free: 14.25 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002849/0.5124, allocations: 43.42 kB / 404.9 MB, free: 14.21 MB / 346.7 MB Notification: Performance of SimCode: time 1.012e-06/0.5124, allocations: 0 / 404.9 MB, free: 14.21 MB / 346.7 MB Notification: Performance of Templates: time 0.02764/0.5401, allocations: 13.98 MB / 418.9 MB, free: 244 kB / 346.7 MB