Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed") Notification: Performance of loadModel(PowerSystems): time 2.292/2.292, allocations: 232.9 MB / 248.1 MB, free: 10.34 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.693e-05/3.691e-05, allocations: 7.984 kB / 304.4 MB, free: 1.965 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3587/0.3588, allocations: 53.22 MB / 357.6 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.01015/0.369, allocations: 5.988 MB / 363.6 MB, free: 9.781 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006662/0.3757, allocations: 2.558 MB / 366.1 MB, free: 7.754 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001028/0.3768, allocations: 45.56 kB / 366.2 MB, free: 7.738 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008678/0.3777, allocations: 209.5 kB / 366.4 MB, free: 7.555 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001812/0.3795, allocations: 438.8 kB / 366.8 MB, free: 7.172 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001017/0.3806, allocations: 243.7 kB / 367 MB, free: 6.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001488/0.3821, allocations: 0.5076 MB / 367.5 MB, free: 6.625 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001308/0.3834, allocations: 0.6847 MB / 368.2 MB, free: 6.121 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007376/0.3841, allocations: 310 kB / 368.5 MB, free: 5.957 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007414/0.3849, allocations: 331.8 kB / 368.9 MB, free: 5.785 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007385/0.3857, allocations: 247.3 kB / 369.1 MB, free: 5.672 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001726/0.3858, allocations: 32.38 kB / 369.1 MB, free: 5.672 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000379/0.3862, allocations: 249.4 kB / 369.4 MB, free: 5.527 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002591/0.3865, allocations: 79.59 kB / 369.5 MB, free: 5.523 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001757/0.3883, allocations: 1.066 MB / 370.5 MB, free: 4.562 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3883, allocations: 0 / 370.5 MB, free: 4.562 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.725e-06/0.3883, allocations: 0 / 370.5 MB, free: 4.562 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.814e-05/0.3884, allocations: 0 / 370.5 MB, free: 4.562 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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.002728/0.3911, allocations: 0.9272 MB / 371.4 MB, free: 3.586 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.3912, allocations: 12.03 kB / 371.5 MB, free: 3.574 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009994/0.3922, allocations: 134.9 kB / 371.6 MB, free: 3.441 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001928/0.3941, allocations: 0.6428 MB / 372.2 MB, free: 2.754 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001689/0.3943, allocations: 83.67 kB / 372.3 MB, free: 2.668 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001993/0.3945, allocations: 67.91 kB / 372.4 MB, free: 2.602 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002415/0.397, allocations: 0.9452 MB / 373.3 MB, free: 1.613 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.721e-05/0.3971, allocations: 19.88 kB / 373.3 MB, free: 1.594 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001003/0.3972, allocations: 20 kB / 373.4 MB, free: 1.574 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000169/0.3973, allocations: 65.28 kB / 373.4 MB, free: 1.508 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00233/0.3997, allocations: 0.7779 MB / 374.2 MB, free: 0.7305 MB / 298.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 preOpt removeSimpleEquations (simulation): time 0.008197/0.4079, allocations: 3.883 MB / 378.1 MB, free: 12.64 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001395/0.4094, allocations: 0.513 MB / 378.6 MB, free: 12.08 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.888e-05/0.4095, allocations: 8.047 kB / 378.6 MB, free: 12.07 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.751e-05/0.4095, allocations: 42.5 kB / 378.7 MB, free: 12.02 MB / 314.7 MB Notification: Performance of pre-optimization done (n=37): time 3.427e-06/0.4095, allocations: 0 / 378.7 MB, free: 12.02 MB / 314.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: machine.motor.i_s[2] 2: machine.motor.w_el Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=55): time 0.02205/0.4316, allocations: 4.816 MB / 383.5 MB, free: 6.922 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.4317, allocations: 115.2 kB / 383.6 MB, free: 6.785 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001021/0.4328, allocations: 477.8 kB / 384 MB, free: 6.312 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001315/0.433, allocations: 41.73 kB / 384.1 MB, free: 6.266 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003896/0.4334, allocations: 433.5 kB / 384.5 MB, free: 5.836 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003546/0.4337, allocations: 189.3 kB / 384.7 MB, free: 5.648 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.368e-05/0.4338, allocations: 16 kB / 384.7 MB, free: 5.633 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.434, allocations: 338.8 kB / 385 MB, free: 5.293 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008907/0.4349, allocations: 273.8 kB / 385.3 MB, free: 5.027 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00109/0.436, allocations: 0.4994 MB / 385.8 MB, free: 4.422 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/0.4372, allocations: 368.6 kB / 386.2 MB, free: 4.062 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.865e-06/0.4373, allocations: 4 kB / 386.2 MB, free: 4.059 MB / 314.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.005484/0.4428, allocations: 1.486 MB / 387.7 MB, free: 2.5 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.934e-05/0.4429, allocations: 8 kB / 387.7 MB, free: 2.492 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.335e-05/0.4429, allocations: 11.98 kB / 387.7 MB, free: 2.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003032/0.4459, allocations: 464.1 kB / 388.1 MB, free: 2.012 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008248/0.4468, allocations: 115.8 kB / 388.2 MB, free: 1.898 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01354/0.4604, allocations: 8.195 MB / 396.4 MB, free: 9.109 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.4615, allocations: 23.98 kB / 396.5 MB, free: 9.086 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000145/0.4617, allocations: 39.98 kB / 396.5 MB, free: 9.047 MB / 330.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: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 55 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0007792/0.4624, allocations: 309.4 kB / 396.8 MB, free: 8.734 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002457/0.4627, allocations: 63.23 kB / 396.9 MB, free: 8.672 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004776/0.4675, allocations: 1.387 MB / 398.3 MB, free: 7.211 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.111e-05/0.4676, allocations: 4 kB / 398.3 MB, free: 7.207 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.729e-05/0.4676, allocations: 8 kB / 398.3 MB, free: 7.199 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.331e-05/0.4676, allocations: 3.984 kB / 398.3 MB, free: 7.195 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007092/0.4747, allocations: 2.303 MB / 400.6 MB, free: 4.754 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.158e-05/0.4748, allocations: 0 / 400.6 MB, free: 4.754 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006619/0.4755, allocations: 71.95 kB / 400.6 MB, free: 4.684 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002478/0.478, allocations: 443.7 kB / 401.1 MB, free: 4.234 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001163/0.4781, allocations: 15.98 kB / 401.1 MB, free: 4.219 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01082/0.489, allocations: 7.606 MB / 408.7 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.045e-06/0.489, allocations: 3.953 kB / 408.7 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005821/0.4949, allocations: 1.929 MB / 410.6 MB, free: 10 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005618/0.4955, allocations: 204.3 kB / 410.8 MB, free: 9.781 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001825/0.4957, allocations: 16 kB / 410.8 MB, free: 9.766 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007344/0.4964, allocations: 20.05 kB / 410.9 MB, free: 9.746 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002279/0.4967, allocations: 52.48 kB / 410.9 MB, free: 9.691 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.59e-05/0.4968, allocations: 16 kB / 410.9 MB, free: 9.676 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007619/0.4975, allocations: 370.8 kB / 411.3 MB, free: 9.316 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.4976, allocations: 3.938 kB / 411.3 MB, free: 9.312 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001656/0.4992, allocations: 236 kB / 411.5 MB, free: 9.082 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (machine.motor.phi_el,machine.motor.w_el) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 26 * 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: 4 {(2,100.0%) 9,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005352/0.4998, allocations: 151 kB / 411.7 MB, free: 8.93 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00368/0.5035, allocations: 1.295 MB / 413 MB, free: 7.582 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/0.5036, allocations: 0 / 413 MB, free: 7.582 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002618/0.5062, allocations: 0.9321 MB / 413.9 MB, free: 6.598 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001524/0.5078, allocations: 154.8 kB / 414.1 MB, free: 6.449 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005193/0.513, allocations: 2.073 MB / 416.1 MB, free: 4.336 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001064/0.5141, allocations: 1.06 MB / 417.2 MB, free: 3.25 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002941/0.5145, allocations: 51.42 kB / 417.2 MB, free: 3.199 MB / 346.7 MB Notification: Performance of SimCode: time 1.262e-06/0.5145, allocations: 3.938 kB / 417.2 MB, free: 3.195 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.