Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") Notification: Performance of loadModel(PowerSystems): time 2.285/2.285, allocations: 232.9 MB / 248.1 MB, free: 10.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.951e-05/2.97e-05, allocations: 4 kB / 304.4 MB, free: 1.965 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3632/0.3633, allocations: 53.21 MB / 357.6 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.01122/0.3745, allocations: 6.767 MB / 364.3 MB, free: 9.148 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00695/0.3815, allocations: 2.776 MB / 367.1 MB, free: 6.945 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009555/0.3825, allocations: 52.06 kB / 367.2 MB, free: 6.926 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007878/0.3834, allocations: 205.2 kB / 367.4 MB, free: 6.746 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002273/0.3856, allocations: 0.556 MB / 367.9 MB, free: 6.266 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001075/0.3867, allocations: 264.9 kB / 368.2 MB, free: 6.059 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001611/0.3884, allocations: 0.6551 MB / 368.8 MB, free: 5.605 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001895/0.3903, allocations: 0.9878 MB / 369.8 MB, free: 4.949 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009226/0.3912, allocations: 394.8 kB / 370.2 MB, free: 4.746 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000973/0.3922, allocations: 463.8 kB / 370.7 MB, free: 4.414 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001485/0.3937, allocations: 0.5539 MB / 371.2 MB, free: 3.859 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002377/0.394, allocations: 52 kB / 371.3 MB, free: 3.809 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005421/0.3945, allocations: 367 kB / 371.6 MB, free: 3.449 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003815/0.3949, allocations: 104 kB / 371.7 MB, free: 3.348 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002582/0.3975, allocations: 1.656 MB / 373.4 MB, free: 1.688 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.3976, allocations: 0 / 373.4 MB, free: 1.688 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.33e-06/0.3976, allocations: 0 / 373.4 MB, free: 1.688 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.715e-05/0.3976, allocations: 3.938 kB / 373.4 MB, free: 1.684 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.004054/0.4017, allocations: 1.283 MB / 374.7 MB, free: 356 kB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.4017, allocations: 8.031 kB / 374.7 MB, free: 348 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000991/0.4027, allocations: 166.5 kB / 374.8 MB, free: 180 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002182/0.4049, allocations: 0.7985 MB / 375.6 MB, free: 15.34 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002865/0.4052, allocations: 204.8 kB / 375.8 MB, free: 15.11 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002746/0.4055, allocations: 103.9 kB / 375.9 MB, free: 15.01 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003674/0.4092, allocations: 1.45 MB / 377.4 MB, free: 13.49 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.726e-05/0.4093, allocations: 7.938 kB / 377.4 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001563/0.4095, allocations: 43.94 kB / 377.4 MB, free: 13.44 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001986/0.4097, allocations: 81.97 kB / 377.5 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003541/0.4132, allocations: 1.261 MB / 378.8 MB, free: 12.1 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01136/0.4246, allocations: 5.227 MB / 384 MB, free: 6.695 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002623/0.4273, allocations: 1.039 MB / 385.1 MB, free: 5.59 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.484e-05/0.4274, allocations: 9.234 kB / 385.1 MB, free: 5.582 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/0.4274, allocations: 39.12 kB / 385.1 MB, free: 5.535 MB / 314.7 MB Notification: Performance of pre-optimization done (n=74): time 3.937e-06/0.4275, allocations: 0 / 385.1 MB, free: 5.535 MB / 314.7 MB Notification: Performance of matching and sorting (n=79): time 0.009757/0.4372, allocations: 3.677 MB / 388.8 MB, free: 1.703 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.974e-05/0.4374, allocations: 115.4 kB / 388.9 MB, free: 1.566 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001204/0.4386, allocations: 0.6086 MB / 389.5 MB, free: 0.9492 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.824e-05/0.4387, allocations: 41.7 kB / 389.5 MB, free: 0.9023 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004393/0.4391, allocations: 0.5012 MB / 390 MB, free: 404 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003434/0.4395, allocations: 272.1 kB / 390.3 MB, free: 128 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.116e-05/0.4396, allocations: 20 kB / 390.3 MB, free: 108 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001978/0.4398, allocations: 354.8 kB / 390.7 MB, free: 15.75 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001266/0.4411, allocations: 442.1 kB / 391.1 MB, free: 15.32 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001499/0.4426, allocations: 0.726 MB / 391.8 MB, free: 14.47 MB / 330.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: bldcm.rotor.w = bldcm.rotor.w_start (loadInertia.w_start = bldcm.rotor.w_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.007007/0.4496, allocations: 1.572 MB / 393.4 MB, free: 12.88 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.391e-05/0.4497, allocations: 4 kB / 393.4 MB, free: 12.88 MB / 330.7 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.003861/0.4535, allocations: 1.381 MB / 394.8 MB, free: 11.46 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.263e-05/0.4536, allocations: 8.938 kB / 394.8 MB, free: 11.46 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.288e-05/0.4536, allocations: 8 kB / 394.8 MB, free: 11.45 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004779/0.4541, allocations: 110.8 kB / 394.9 MB, free: 11.33 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001647/0.4558, allocations: 219.6 kB / 395.1 MB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002852/0.4587, allocations: 2.744 MB / 397.9 MB, free: 8.102 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001331/0.46, allocations: 79.83 kB / 397.9 MB, free: 8.023 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/0.4602, allocations: 40 kB / 398 MB, free: 7.984 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: bldcm.rotor.w = bldcm.rotor.w_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[1],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[6]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 111 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009831/0.4612, allocations: 429.1 kB / 398.4 MB, free: 7.555 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002972/0.4615, allocations: 79.05 kB / 398.5 MB, free: 7.477 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003024/0.4645, allocations: 1.097 MB / 399.6 MB, free: 6.348 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.062e-05/0.4646, allocations: 16 kB / 399.6 MB, free: 6.332 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.4646, allocations: 0 / 399.6 MB, free: 6.332 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.422e-05/0.4647, allocations: 3.984 kB / 399.6 MB, free: 6.328 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00636/0.471, allocations: 2.389 MB / 402 MB, free: 3.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.668e-06/0.4711, allocations: 0 / 402 MB, free: 3.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001374/0.4725, allocations: 139.8 kB / 402.1 MB, free: 3.703 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002212/0.4727, allocations: 49.64 kB / 402.2 MB, free: 3.648 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.539e-05/0.4728, allocations: 23.94 kB / 402.2 MB, free: 3.625 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002609/0.4754, allocations: 2.673 MB / 404.9 MB, free: 0.6875 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.4755, allocations: 4.062 kB / 404.9 MB, free: 0.6836 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004357/0.4798, allocations: 1.767 MB / 406.6 MB, free: 14.86 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006438/0.4805, allocations: 256 kB / 406.9 MB, free: 14.59 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002125/0.4808, allocations: 19.78 kB / 406.9 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009455/0.4817, allocations: 59.94 kB / 407 MB, free: 14.51 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002333/0.482, allocations: 56.47 kB / 407 MB, free: 14.46 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.397e-05/0.4821, allocations: 20 kB / 407 MB, free: 14.44 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009951/0.4831, allocations: 479 kB / 407.5 MB, free: 13.97 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4831, allocations: 0 / 407.5 MB, free: 13.97 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001461/0.4846, allocations: 263.9 kB / 407.8 MB, free: 13.71 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (efficiency.pav,efficiency.qav,bldcm.motor.phi_el,bldcm.motor.w_el,bldcm.motor.i_s[1],bldcm.motor.i_s[2],bldcm.motor.i_s[3]) * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[1],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[6]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 66 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000529/0.4851, allocations: 168.8 kB / 407.9 MB, free: 13.55 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0035/0.4886, allocations: 1.366 MB / 409.3 MB, free: 12.14 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/0.4887, allocations: 0 / 409.3 MB, free: 12.14 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001745/0.4904, allocations: 0.723 MB / 410 MB, free: 11.39 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00162/0.4921, allocations: 210.8 kB / 410.2 MB, free: 11.19 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008028/0.5001, allocations: 3.139 MB / 413.4 MB, free: 8.012 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001234/0.5014, allocations: 1.181 MB / 414.5 MB, free: 6.805 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005614/0.502, allocations: 79.41 kB / 414.6 MB, free: 6.727 MB / 346.7 MB Notification: Performance of SimCode: time 1.433e-06/0.502, allocations: 0 / 414.6 MB, free: 6.727 MB / 346.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.