Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") Notification: Performance of loadModel(PowerSystems): time 2.435/2.435, allocations: 232.9 MB / 248.1 MB, free: 10.33 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.006e-05/3e-05, allocations: 4 kB / 304.4 MB, free: 1.953 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3662/0.3662, allocations: 53.22 MB / 357.6 MB, free: 15.48 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.01179/0.3781, allocations: 6.957 MB / 364.5 MB, free: 8.488 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01062/0.3888, allocations: 4.363 MB / 368.9 MB, free: 4.117 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001266/0.3901, allocations: 63.69 kB / 369 MB, free: 4.055 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006044/0.3962, allocations: 1.597 MB / 370.6 MB, free: 2.453 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0021/0.3983, allocations: 398.7 kB / 371 MB, free: 2.062 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001911/0.4003, allocations: 387.2 kB / 371.3 MB, free: 1.684 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00196/0.4022, allocations: 0.6326 MB / 372 MB, free: 1.047 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001831/0.4041, allocations: 0.8915 MB / 372.9 MB, free: 124 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009816/0.4051, allocations: 398.8 kB / 373.2 MB, free: 15.73 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001052/0.4062, allocations: 482.5 kB / 373.7 MB, free: 15.26 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003382/0.4066, allocations: 55.92 kB / 373.8 MB, free: 15.2 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000186/0.4068, allocations: 36 kB / 373.8 MB, free: 15.17 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000495/0.4073, allocations: 331.1 kB / 374.1 MB, free: 14.84 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003206/0.4076, allocations: 88 kB / 374.2 MB, free: 14.76 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001928/0.4095, allocations: 1.216 MB / 375.4 MB, free: 13.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.4096, allocations: 0 / 375.4 MB, free: 13.54 MB / 314.7 MB Notification: Performance of FrontEnd: time 5.941e-06/0.4096, allocations: 0 / 375.4 MB, free: 13.54 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.131e-05/0.4097, allocations: 7.875 kB / 375.4 MB, free: 13.53 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: 219 * Number of variables: 219 Notification: Performance of Generate backend data structure: time 0.00414/0.4138, allocations: 1.122 MB / 376.6 MB, free: 12.36 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.4139, allocations: 12.03 kB / 376.6 MB, free: 12.35 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007688/0.4147, allocations: 126.5 kB / 376.7 MB, free: 12.22 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002995/0.4177, allocations: 0.8432 MB / 377.5 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.023e-05/0.4178, allocations: 62 kB / 377.6 MB, free: 11.28 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002977/0.4181, allocations: 87.98 kB / 377.7 MB, free: 11.19 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003275/0.4214, allocations: 1.182 MB / 378.9 MB, free: 9.961 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.369e-05/0.4215, allocations: 11.84 kB / 378.9 MB, free: 9.949 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000149/0.4217, allocations: 35.98 kB / 378.9 MB, free: 9.914 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003791/0.4221, allocations: 69.95 kB / 379 MB, free: 9.848 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003096/0.4252, allocations: 0.9876 MB / 380 MB, free: 8.859 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01085/0.4361, allocations: 4.245 MB / 384.2 MB, free: 4.465 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002433/0.4386, allocations: 0.877 MB / 385.1 MB, free: 3.547 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001181/0.4387, allocations: 8.625 kB / 385.1 MB, free: 3.539 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.88e-05/0.4388, allocations: 43.06 kB / 385.1 MB, free: 3.488 MB / 314.7 MB Notification: Performance of pre-optimization done (n=69): time 4.018e-06/0.4388, allocations: 0 / 385.1 MB, free: 3.488 MB / 314.7 MB Notification: Performance of matching and sorting (n=72): time 0.01103/0.4499, allocations: 3.882 MB / 389 MB, free: 15.36 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.817e-05/0.45, allocations: 137.1 kB / 389.2 MB, free: 15.2 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00116/0.4512, allocations: 0.5662 MB / 389.7 MB, free: 14.62 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001986/0.4514, allocations: 41.7 kB / 389.8 MB, free: 14.58 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000458/0.4519, allocations: 477.8 kB / 390.2 MB, free: 14.11 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004043/0.4523, allocations: 260.3 kB / 390.5 MB, free: 13.85 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.176e-05/0.4524, allocations: 16 kB / 390.5 MB, free: 13.83 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.4526, allocations: 342.8 kB / 390.8 MB, free: 13.49 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001221/0.4538, allocations: 377.8 kB / 391.2 MB, free: 13.12 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001424/0.4553, allocations: 0.5726 MB / 391.8 MB, free: 12.46 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01055/0.4658, allocations: 1.441 MB / 393.2 MB, free: 11 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.945e-06/0.4659, allocations: 0 / 393.2 MB, free: 11 MB / 330.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.005742/0.4717, allocations: 1.669 MB / 394.9 MB, free: 9.277 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001082/0.4728, allocations: 2.355 MB / 397.2 MB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.669e-05/0.4728, allocations: 11.98 kB / 397.3 MB, free: 6.73 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007655/0.4805, allocations: 0.9854 MB / 398.2 MB, free: 5.734 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009555/0.4815, allocations: 123.8 kB / 398.4 MB, free: 5.613 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007254/0.4888, allocations: 4.44 MB / 402.8 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00112/0.49, allocations: 39.97 kB / 402.8 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001177/0.4901, allocations: 43.92 kB / 402.9 MB, free: 0.7969 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.4901, allocations: 4.219 kB / 402.9 MB, free: 0.793 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005141/0.4953, allocations: 1.581 MB / 404.5 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.92e-05/0.4954, allocations: 8 kB / 404.5 MB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007043/0.5024, allocations: 0.9394 MB / 405.4 MB, free: 14.21 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009647/0.5034, allocations: 119.9 kB / 405.5 MB, free: 14.09 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00679/0.5102, allocations: 4.393 MB / 409.9 MB, free: 9.406 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008926/0.5112, allocations: 35.98 kB / 410 MB, free: 9.371 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/0.5113, allocations: 35.98 kB / 410 MB, free: 9.336 MB / 346.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_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 59 * 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: 2 {(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {6 35} Notification: Performance of prepare postOptimizeDAE: time 0.0008686/0.5122, allocations: 329.8 kB / 410.3 MB, free: 9.004 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002792/0.5125, allocations: 87.2 kB / 410.4 MB, free: 8.918 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003695/0.5162, allocations: 1.356 MB / 411.8 MB, free: 7.473 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.756e-05/0.5163, allocations: 8 kB / 411.8 MB, free: 7.465 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.5163, allocations: 4 kB / 411.8 MB, free: 7.461 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.736e-05/0.5163, allocations: 7.922 kB / 411.8 MB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006522/0.5228, allocations: 2.483 MB / 414.3 MB, free: 4.828 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/0.5229, allocations: 0 / 414.3 MB, free: 4.828 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001688/0.5246, allocations: 155.8 kB / 414.4 MB, free: 4.676 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008895/0.5255, allocations: 180.1 kB / 414.6 MB, free: 4.484 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001251/0.5257, allocations: 23.98 kB / 414.6 MB, free: 4.461 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007292/0.533, allocations: 6.829 MB / 421.4 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.533, allocations: 0 / 421.4 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005009/0.538, allocations: 1.987 MB / 423.4 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006655/0.5387, allocations: 235.9 kB / 423.7 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002232/0.539, allocations: 20 kB / 423.7 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008623/0.5399, allocations: 31.97 kB / 423.7 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002034/0.5401, allocations: 56.61 kB / 423.8 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.171e-05/0.5402, allocations: 27.98 kB / 423.8 MB, free: 10.48 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009092/0.5411, allocations: 463 kB / 424.2 MB, free: 10.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5411, allocations: 0 / 424.2 MB, free: 10.04 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002133/0.5433, allocations: 364 kB / 424.6 MB, free: 9.684 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 9 (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_rq[1],asm_ctrl.motor.phiRotorflux,PI_i_q.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 72 * 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,(1,100.0%) 1,(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.0003877/0.5437, allocations: 127.1 kB / 424.7 MB, free: 9.551 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007065/0.5508, allocations: 2.115 MB / 426.8 MB, free: 7.383 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.5508, allocations: 0 / 426.8 MB, free: 7.383 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002246/0.5531, allocations: 1.037 MB / 427.9 MB, free: 6.281 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001572/0.5547, allocations: 202.2 kB / 428.1 MB, free: 6.086 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006357/0.5611, allocations: 2.914 MB / 431 MB, free: 3.137 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001072/0.5622, allocations: 1.143 MB / 432.1 MB, free: 1.965 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004891/0.5627, allocations: 75.41 kB / 432.2 MB, free: 1.891 MB / 362.7 MB Notification: Performance of SimCode: time 8.92e-07/0.5627, allocations: 0 / 432.2 MB, free: 1.891 MB / 362.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.