Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.ASM,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASM") Notification: Performance of loadModel(PowerSystems): time 2.362/2.362, allocations: 232.9 MB / 248.1 MB, free: 10.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.675e-05/3.68e-05, allocations: 4 kB / 304.4 MB, free: 1.961 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3774/0.3774, allocations: 53.22 MB / 357.6 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM): time 0.0223/0.3998, allocations: 7.2 MB / 364.8 MB, free: 8.816 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0119/0.4118, allocations: 4.757 MB / 369.5 MB, free: 5.129 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001259/0.4131, allocations: 58.06 kB / 369.6 MB, free: 5.105 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006726/0.4198, allocations: 1.749 MB / 371.3 MB, free: 3.777 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002592/0.4225, allocations: 494.3 kB / 371.8 MB, free: 3.293 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001765/0.4243, allocations: 395.2 kB / 372.2 MB, free: 2.906 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001835/0.4261, allocations: 0.6674 MB / 372.9 MB, free: 2.238 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002185/0.4283, allocations: 1.111 MB / 374 MB, free: 1.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001116/0.4295, allocations: 482.7 kB / 374.5 MB, free: 0.6172 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001195/0.4307, allocations: 0.5923 MB / 375.1 MB, free: 24 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001491/0.4322, allocations: 0.5032 MB / 375.6 MB, free: 15.52 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003228/0.4325, allocations: 60 kB / 375.6 MB, free: 15.46 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008094/0.4334, allocations: 0.5105 MB / 376.1 MB, free: 14.95 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000501/0.4339, allocations: 120 kB / 376.2 MB, free: 14.83 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002881/0.4368, allocations: 1.687 MB / 377.9 MB, free: 13.14 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.4368, allocations: 0 / 377.9 MB, free: 13.14 MB / 314.7 MB Notification: Performance of FrontEnd: time 6.042e-06/0.4368, allocations: 0 / 377.9 MB, free: 13.14 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.047e-05/0.4369, allocations: 3.938 kB / 377.9 MB, free: 13.14 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: 293 * Number of variables: 293 Notification: Performance of Generate backend data structure: time 0.005634/0.4425, allocations: 1.616 MB / 379.6 MB, free: 11.44 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.4426, allocations: 8.031 kB / 379.6 MB, free: 11.43 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001122/0.4437, allocations: 190.2 kB / 379.8 MB, free: 11.24 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003114/0.4469, allocations: 0.9797 MB / 380.7 MB, free: 10.22 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002623/0.4472, allocations: 183.1 kB / 380.9 MB, free: 10.02 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003855/0.4476, allocations: 111.9 kB / 381 MB, free: 9.914 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005903/0.4535, allocations: 1.871 MB / 382.9 MB, free: 7.969 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.561e-05/0.4536, allocations: 3.938 kB / 382.9 MB, free: 7.965 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000201/0.4538, allocations: 43.98 kB / 382.9 MB, free: 7.922 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005585/0.4544, allocations: 129.9 kB / 383.1 MB, free: 7.793 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005324/0.4597, allocations: 1.612 MB / 384.7 MB, free: 6.18 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01451/0.4743, allocations: 5.771 MB / 390.4 MB, free: 240 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004697/0.479, allocations: 1.238 MB / 391.7 MB, free: 14.96 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001469/0.4792, allocations: 17.06 kB / 391.7 MB, free: 14.94 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003221/0.4824, allocations: 1 MB / 392.7 MB, free: 13.93 MB / 330.7 MB Notification: Performance of pre-optimization done (n=116): time 7.725e-06/0.4825, allocations: 4 kB / 392.7 MB, free: 13.92 MB / 330.7 MB Notification: Performance of matching and sorting (n=120): time 0.02127/0.5037, allocations: 6.235 MB / 398.9 MB, free: 7.418 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001243/0.5039, allocations: 131.8 kB / 399.1 MB, free: 7.262 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001422/0.5054, allocations: 0.6796 MB / 399.7 MB, free: 6.57 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002264/0.5056, allocations: 57.69 kB / 399.8 MB, free: 6.508 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005638/0.5062, allocations: 0.5139 MB / 400.3 MB, free: 5.988 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00058/0.5068, allocations: 406.3 kB / 400.7 MB, free: 5.586 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/0.5069, allocations: 28 kB / 400.7 MB, free: 5.559 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000237/0.5072, allocations: 370.7 kB / 401.1 MB, free: 5.188 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001771/0.5089, allocations: 0.6747 MB / 401.8 MB, free: 4.516 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002047/0.511, allocations: 0.9532 MB / 402.7 MB, free: 3.465 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002083/0.5131, allocations: 0.8643 MB / 403.6 MB, free: 2.59 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.036e-05/0.5131, allocations: 4 kB / 403.6 MB, free: 2.586 MB / 330.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.006704/0.5198, allocations: 2.372 MB / 406 MB, free: 156 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001425/0.52, allocations: 91.38 kB / 406.1 MB, free: 52 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.521e-05/0.5201, allocations: 8 kB / 406.1 MB, free: 44 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002331/0.5224, allocations: 434.4 kB / 406.5 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001632/0.5241, allocations: 219.6 kB / 406.7 MB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01454/0.5386, allocations: 7.245 MB / 414 MB, free: 7.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001673/0.5403, allocations: 96.16 kB / 414 MB, free: 7.656 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002523/0.5406, allocations: 87.94 kB / 414.1 MB, free: 7.57 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 29 (system.initime,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.inverter.modulator.gates[1],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[6],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.t0[1],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 114 * Array equations: 3 * Algorithm blocks: 8 * 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 {4 21} Notification: Performance of prepare postOptimizeDAE: time 0.001125/0.5418, allocations: 469 kB / 414.6 MB, free: 7.102 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003597/0.5421, allocations: 106.6 kB / 414.7 MB, free: 6.996 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007106/0.5492, allocations: 2.108 MB / 416.8 MB, free: 4.812 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.942e-05/0.5494, allocations: 31.92 kB / 416.8 MB, free: 4.781 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/0.5494, allocations: 4 kB / 416.8 MB, free: 4.777 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.772e-05/0.5494, allocations: 3.984 kB / 416.8 MB, free: 4.773 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01079/0.5602, allocations: 3.567 MB / 420.4 MB, free: 1.078 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/0.5603, allocations: 4.062 kB / 420.4 MB, free: 1.074 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001842/0.5621, allocations: 171.7 kB / 420.6 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009678/0.5631, allocations: 175.3 kB / 420.8 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001816/0.5633, allocations: 39.95 kB / 420.8 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007402/0.5707, allocations: 5.886 MB / 426.7 MB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.586e-06/0.5708, allocations: 4.312 kB / 426.7 MB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01159/0.5824, allocations: 3.092 MB / 429.8 MB, free: 7.055 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001274/0.5837, allocations: 315.6 kB / 430.1 MB, free: 6.727 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000605/0.5843, allocations: 87.94 kB / 430.2 MB, free: 6.641 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002355/0.5867, allocations: 135.8 kB / 430.3 MB, free: 6.508 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003915/0.5871, allocations: 80.81 kB / 430.4 MB, free: 6.426 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002094/0.5874, allocations: 43.95 kB / 430.4 MB, free: 6.383 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00146/0.5888, allocations: 0.5224 MB / 430.9 MB, free: 5.859 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.52e-07/0.5889, allocations: 0 / 430.9 MB, free: 5.859 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002973/0.5919, allocations: 364.1 kB / 431.3 MB, free: 5.504 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 13 (power.pav[1],power.pav[2],power.pav[3],asm.motor.i[3],asm.motor.phi_el,asm.motor.w_el,asm.motor.psi_s[1],asm.motor.psi_s[2],asm.motor.psi_rd[1],asm.motor.psi_rd[2],asm.motor.psi_rq[1],asm.motor.psi_rq[2],tabLoad.s) * Number of discrete variables: 17 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3],system.initime) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 78 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(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.001987/0.5939, allocations: 419.8 kB / 431.7 MB, free: 5.156 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01156/0.6055, allocations: 3.198 MB / 434.9 MB, free: 1.82 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.013e-05/0.6056, allocations: 64 / 434.9 MB, free: 1.82 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005982/0.6116, allocations: 1.356 MB / 436.3 MB, free: 420 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002386/0.614, allocations: 207 kB / 436.5 MB, free: 216 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01358/0.6276, allocations: 4.171 MB / 440.6 MB, free: 12 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00203/0.6297, allocations: 1.304 MB / 441.9 MB, free: 10.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001057/0.6308, allocations: 91.42 kB / 442 MB, free: 10.57 MB / 378.7 MB Notification: Performance of SimCode: time 1.753e-06/0.6308, allocations: 0 / 442 MB, free: 10.57 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.