Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol") Notification: Performance of loadModel(PowerSystems): time 2.331/2.331, allocations: 232.9 MB / 248.1 MB, free: 11.32 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.87e-05/3.882e-05, allocations: 4 kB / 304.4 MB, free: 2.926 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3489/0.349, allocations: 53.22 MB / 357.6 MB, free: 15.61 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav_icontrol): time 0.01166/0.3607, allocations: 6.873 MB / 364.5 MB, free: 8.703 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01089/0.3716, allocations: 4.496 MB / 369 MB, free: 4.199 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001168/0.3729, allocations: 59.69 kB / 369 MB, free: 4.141 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006301/0.3792, allocations: 1.769 MB / 370.8 MB, free: 2.367 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001947/0.3812, allocations: 394.6 kB / 371.2 MB, free: 1.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00171/0.3829, allocations: 399.2 kB / 371.6 MB, free: 1.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001817/0.3847, allocations: 0.656 MB / 372.2 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00184/0.3866, allocations: 0.9032 MB / 373.1 MB, free: 15.99 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00115/0.3878, allocations: 430.6 kB / 373.5 MB, free: 15.57 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001352/0.3892, allocations: 0.5375 MB / 374.1 MB, free: 15.03 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005643/0.3898, allocations: 95.91 kB / 374.2 MB, free: 14.94 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003035/0.3901, allocations: 48 kB / 374.2 MB, free: 14.89 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006197/0.3907, allocations: 390.9 kB / 374.6 MB, free: 14.51 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003907/0.3911, allocations: 100 kB / 374.7 MB, free: 14.41 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002328/0.3935, allocations: 1.43 MB / 376.1 MB, free: 12.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.3935, allocations: 3.938 kB / 376.1 MB, free: 12.97 MB / 314.7 MB Notification: Performance of FrontEnd: time 8.767e-06/0.3935, allocations: 3.984 kB / 376.1 MB, free: 12.97 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.482e-05/0.3936, allocations: 0 / 376.1 MB, free: 12.97 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.005126/0.3987, allocations: 1.342 MB / 377.5 MB, free: 11.57 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.21e-05/0.3988, allocations: 12.03 kB / 377.5 MB, free: 11.56 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008355/0.3996, allocations: 146.3 kB / 377.6 MB, free: 11.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003728/0.4034, allocations: 1 MB / 378.6 MB, free: 10.37 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001144/0.4036, allocations: 69.94 kB / 378.7 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003666/0.4039, allocations: 87.98 kB / 378.8 MB, free: 10.21 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00364/0.4076, allocations: 1.291 MB / 380.1 MB, free: 8.879 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.106e-05/0.4077, allocations: 4 kB / 380.1 MB, free: 8.875 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001568/0.4078, allocations: 35.94 kB / 380.1 MB, free: 8.84 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005787/0.4084, allocations: 101.9 kB / 380.2 MB, free: 8.738 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00342/0.4119, allocations: 1.124 MB / 381.3 MB, free: 7.617 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01195/0.4239, allocations: 4.756 MB / 386.1 MB, free: 2.688 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002454/0.4264, allocations: 0.9263 MB / 387 MB, free: 1.711 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001291/0.4265, allocations: 16.7 kB / 387 MB, free: 1.695 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001586/0.4281, allocations: 0.6178 MB / 387.7 MB, free: 1.059 MB / 314.7 MB Notification: Performance of pre-optimization done (n=78): time 3.536e-06/0.4282, allocations: 0 / 387.7 MB, free: 1.059 MB / 314.7 MB Notification: Performance of matching and sorting (n=81): time 0.0139/0.4421, allocations: 4.769 MB / 392.4 MB, free: 12.04 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/0.4422, allocations: 166.9 kB / 392.6 MB, free: 11.84 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001479/0.4437, allocations: 0.692 MB / 393.3 MB, free: 11.14 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001986/0.4439, allocations: 45.69 kB / 393.3 MB, free: 11.09 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005002/0.4445, allocations: 0.5019 MB / 393.8 MB, free: 10.59 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004252/0.4449, allocations: 291.7 kB / 394.1 MB, free: 10.3 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001/0.445, allocations: 20 kB / 394.1 MB, free: 10.28 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001868/0.4452, allocations: 354.8 kB / 394.5 MB, free: 9.922 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001435/0.4467, allocations: 481.7 kB / 395 MB, free: 9.453 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00162/0.4483, allocations: 0.6957 MB / 395.6 MB, free: 8.664 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001611/0.4499, allocations: 0.5864 MB / 396.2 MB, free: 8.074 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.466e-06/0.45, allocations: 4 kB / 396.2 MB, free: 8.07 MB / 330.7 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.01093/0.4609, allocations: 2.514 MB / 398.8 MB, free: 5.496 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001235/0.4622, allocations: 2.47 MB / 401.2 MB, free: 2.828 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.064e-05/0.4622, allocations: 4 kB / 401.2 MB, free: 2.824 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01333/0.4756, allocations: 1.772 MB / 403 MB, free: 1.039 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001058/0.4767, allocations: 131.8 kB / 403.1 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008435/0.4851, allocations: 4.813 MB / 407.9 MB, free: 11.81 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00141/0.4866, allocations: 64.02 kB / 408 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001473/0.4868, allocations: 47.98 kB / 408.1 MB, free: 11.7 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.4868, allocations: 4 kB / 408.1 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01052/0.4973, allocations: 2.412 MB / 410.5 MB, free: 9.234 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.048e-05/0.4974, allocations: 7.984 kB / 410.5 MB, free: 9.227 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01245/0.5099, allocations: 1.691 MB / 412.2 MB, free: 7.527 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001491/0.5114, allocations: 131.8 kB / 412.3 MB, free: 7.398 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01194/0.5234, allocations: 4.758 MB / 417.1 MB, free: 2.344 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00175/0.5252, allocations: 55.95 kB / 417.1 MB, free: 2.289 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003613/0.5256, allocations: 51.95 kB / 417.2 MB, free: 2.238 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 65 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {9 40} Notification: Performance of prepare postOptimizeDAE: time 0.001643/0.5273, allocations: 370.3 kB / 417.5 MB, free: 1.867 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004425/0.5278, allocations: 98.97 kB / 417.6 MB, free: 1.77 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007999/0.5358, allocations: 1.749 MB / 419.4 MB, free: 15.94 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-05/0.5359, allocations: 12 kB / 419.4 MB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.215e-05/0.5359, allocations: 7.984 kB / 419.4 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.379e-05/0.536, allocations: 7.922 kB / 419.4 MB, free: 15.91 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01322/0.5492, allocations: 2.94 MB / 422.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.173e-05/0.5493, allocations: 4 kB / 422.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003439/0.5528, allocations: 167.8 kB / 422.5 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004126/0.557, allocations: 415.9 kB / 422.9 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000284/0.5573, allocations: 27.98 kB / 422.9 MB, free: 12.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01436/0.5717, allocations: 7.76 MB / 430.7 MB, free: 3.797 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.534e-06/0.5718, allocations: 7.969 kB / 430.7 MB, free: 3.789 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009607/0.5814, allocations: 2.431 MB / 433.1 MB, free: 1.242 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001037/0.5825, allocations: 267.8 kB / 433.4 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003758/0.5829, allocations: 20 kB / 433.4 MB, free: 0.9414 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001514/0.5844, allocations: 47.95 kB / 433.5 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003492/0.5848, allocations: 76.84 kB / 433.5 MB, free: 0.8203 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001709/0.585, allocations: 35.98 kB / 433.6 MB, free: 0.7852 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001665/0.5866, allocations: 0.5419 MB / 434.1 MB, free: 252 kB / 362.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.5867, allocations: 0 / 434.1 MB, free: 252 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.003606/0.5903, allocations: 447.9 kB / 434.5 MB, free: 15.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 (asm_ctrl.motor.i[3],asm_ctrl.motor.phi_el,asm_ctrl.motor.w_el,asm_ctrl.motor.psi_s[1],asm_ctrl.motor.psi_s[2],asm_ctrl.motor.psi_rd[1],asm_ctrl.motor.psi_rd[2],asm_ctrl.motor.psi_rq[1],asm_ctrl.motor.psi_rq[2],asm_ctrl.motor.phiRotorflux,tabLoad.s,PI_i_q.I.y) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(2,100.0%) 2,(1,100.0%) 3,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001541/0.5919, allocations: 357.4 kB / 434.9 MB, free: 15.51 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01345/0.6053, allocations: 2.723 MB / 437.6 MB, free: 12.71 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.376e-05/0.6054, allocations: 4 kB / 437.6 MB, free: 12.71 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004553/0.61, allocations: 1.257 MB / 438.9 MB, free: 11.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002475/0.6125, allocations: 223.7 kB / 439.1 MB, free: 11.17 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01097/0.6235, allocations: 3.51 MB / 442.6 MB, free: 7.617 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00173/0.6253, allocations: 1.214 MB / 443.8 MB, free: 6.375 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008451/0.6262, allocations: 87.39 kB / 443.9 MB, free: 6.289 MB / 378.7 MB Notification: Performance of SimCode: time 1.242e-06/0.6262, allocations: 0 / 443.9 MB, free: 6.289 MB / 378.7 MB [CodegenCpp.tpl:4138:14-4138:14:writable] Error: Template error: Unsupported external language: BUILTIN. [CodegenCpp.tpl:4129:14-4129:14:writable] Error: Template error: Unsupported external language: BUILTIN.