Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.ASMav,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2400,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC3ph.Drives.ASMav") Notification: Performance of loadModel(PowerSystems): time 2.363/2.363, allocations: 232.9 MB / 248.1 MB, free: 10.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.237e-05/3.234e-05, allocations: 4 kB / 304.4 MB, free: 1.973 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4165/0.4165, allocations: 53.21 MB / 357.6 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASMav): time 0.01169/0.4283, allocations: 6.932 MB / 364.5 MB, free: 9.035 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01153/0.4399, allocations: 4.638 MB / 369.2 MB, free: 5.434 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001211/0.4411, allocations: 54.81 kB / 369.2 MB, free: 5.414 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006593/0.4478, allocations: 1.768 MB / 371 MB, free: 4.156 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002167/0.45, allocations: 410.6 kB / 371.4 MB, free: 3.754 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001634/0.4516, allocations: 371.2 kB / 371.7 MB, free: 3.391 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001403/0.453, allocations: 0.527 MB / 372.3 MB, free: 2.863 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001768/0.4548, allocations: 0.8644 MB / 373.1 MB, free: 1.969 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009045/0.4558, allocations: 371.5 kB / 373.5 MB, free: 1.605 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009343/0.4567, allocations: 462.7 kB / 373.9 MB, free: 1.152 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006022/0.4573, allocations: 143.8 kB / 374.1 MB, free: 1.012 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001899/0.4575, allocations: 43.94 kB / 374.1 MB, free: 0.9688 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005688/0.4581, allocations: 395 kB / 374.5 MB, free: 0.582 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000348/0.4585, allocations: 96 kB / 374.6 MB, free: 500 kB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001862/0.4604, allocations: 1.177 MB / 375.8 MB, free: 15.31 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.4604, allocations: 0 / 375.8 MB, free: 15.31 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.4604, allocations: 0 / 375.8 MB, free: 15.31 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.708e-05/0.4604, allocations: 0 / 375.8 MB, free: 15.31 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: 220 * Number of variables: 220 Notification: Performance of Generate backend data structure: time 0.003901/0.4643, allocations: 1.194 MB / 377 MB, free: 14.06 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/0.4644, allocations: 12.03 kB / 377 MB, free: 14.05 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001048/0.4655, allocations: 150.5 kB / 377.1 MB, free: 13.9 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002669/0.4682, allocations: 0.8472 MB / 378 MB, free: 13.01 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.343e-05/0.4683, allocations: 65.98 kB / 378 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002598/0.4685, allocations: 91.89 kB / 378.1 MB, free: 12.86 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002842/0.4714, allocations: 1.216 MB / 379.4 MB, free: 11.57 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.846e-05/0.4714, allocations: 3.938 kB / 379.4 MB, free: 11.56 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001319/0.4716, allocations: 35.98 kB / 379.4 MB, free: 11.53 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003804/0.472, allocations: 93.89 kB / 379.5 MB, free: 11.44 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002618/0.4746, allocations: 0.9913 MB / 380.5 MB, free: 10.45 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01026/0.4849, allocations: 4.932 MB / 385.4 MB, free: 5.305 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001599/0.4865, allocations: 0.6526 MB / 386.1 MB, free: 4.609 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.899e-05/0.4867, allocations: 16.75 kB / 386.1 MB, free: 4.594 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001039/0.4877, allocations: 445.7 kB / 386.5 MB, free: 4.145 MB / 314.7 MB Notification: Performance of pre-optimization done (n=62): time 3.446e-06/0.4877, allocations: 4 kB / 386.5 MB, free: 4.141 MB / 314.7 MB Notification: Performance of matching and sorting (n=66): time 0.00921/0.497, allocations: 3.438 MB / 390 MB, free: 500 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.183e-05/0.4971, allocations: 111.4 kB / 390.1 MB, free: 364 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001421/0.4985, allocations: 0.6521 MB / 390.7 MB, free: 15.7 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001506/0.4987, allocations: 41.7 kB / 390.8 MB, free: 15.65 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004844/0.4992, allocations: 0.5128 MB / 391.3 MB, free: 15.13 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003261/0.4995, allocations: 232.6 kB / 391.5 MB, free: 14.9 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.781e-05/0.4996, allocations: 20 kB / 391.5 MB, free: 14.88 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001934/0.4998, allocations: 354.8 kB / 391.9 MB, free: 14.52 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001031/0.5009, allocations: 377.8 kB / 392.2 MB, free: 14.15 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00131/0.5022, allocations: 0.6537 MB / 392.9 MB, free: 13.37 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001285/0.5035, allocations: 0.5124 MB / 393.4 MB, free: 12.85 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-06/0.5035, allocations: 0 / 393.4 MB, free: 12.85 MB / 330.7 MB Notification: Performance of matching and sorting (n=122) (initialization): time 0.005111/0.5087, allocations: 1.701 MB / 395.1 MB, free: 11.09 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.689e-05/0.5088, allocations: 41.69 kB / 395.1 MB, free: 11.04 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.269e-05/0.5088, allocations: 11.94 kB / 395.1 MB, free: 11.03 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002718/0.5115, allocations: 0.4947 MB / 395.6 MB, free: 10.53 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001216/0.5128, allocations: 167.7 kB / 395.8 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01717/0.53, allocations: 8.082 MB / 403.9 MB, free: 1.871 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001218/0.5312, allocations: 47.97 kB / 403.9 MB, free: 1.824 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001285/0.5314, allocations: 44 kB / 404 MB, free: 1.781 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * 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 (90): * Single equations (assignments): 86 * 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 {6 23} Notification: Performance of prepare postOptimizeDAE: time 0.0007788/0.5322, allocations: 357.5 kB / 404.3 MB, free: 1.422 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000192/0.5324, allocations: 86.88 kB / 404.4 MB, free: 1.336 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00318/0.5356, allocations: 1.213 MB / 405.6 MB, free: 44 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.56e-05/0.5356, allocations: 12.08 kB / 405.6 MB, free: 32 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.5357, allocations: 8 kB / 405.6 MB, free: 24 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.329e-05/0.5357, allocations: 3.984 kB / 405.6 MB, free: 20 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005776/0.5415, allocations: 2.211 MB / 407.9 MB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.5415, allocations: 0 / 407.9 MB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001395/0.5429, allocations: 124 kB / 408 MB, free: 13.55 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009595/0.5439, allocations: 179.2 kB / 408.2 MB, free: 13.37 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.716e-05/0.544, allocations: 19.98 kB / 408.2 MB, free: 13.35 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007312/0.5513, allocations: 5.878 MB / 414.1 MB, free: 6.938 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.375e-06/0.5514, allocations: 8.016 kB / 414.1 MB, free: 6.93 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004015/0.5554, allocations: 1.692 MB / 415.8 MB, free: 5.105 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005464/0.556, allocations: 223.9 kB / 416 MB, free: 4.867 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002106/0.5562, allocations: 23.98 kB / 416 MB, free: 4.844 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007507/0.557, allocations: 31.97 kB / 416 MB, free: 4.812 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002096/0.5572, allocations: 56.38 kB / 416.1 MB, free: 4.758 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.05e-05/0.5573, allocations: 24 kB / 416.1 MB, free: 4.734 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001007/0.5583, allocations: 0.499 MB / 416.6 MB, free: 4.238 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.294e-06/0.5584, allocations: 4 kB / 416.6 MB, free: 4.234 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001536/0.5599, allocations: 272.1 kB / 416.9 MB, free: 3.969 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 54 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(1,100.0%) 1,(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.001042/0.561, allocations: 339.7 kB / 417.2 MB, free: 3.695 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004276/0.5653, allocations: 1.488 MB / 418.7 MB, free: 2.152 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.094e-05/0.5653, allocations: 4 kB / 418.7 MB, free: 2.148 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002241/0.5676, allocations: 0.9049 MB / 419.6 MB, free: 1.195 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001482/0.5691, allocations: 182.5 kB / 419.8 MB, free: 1.023 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007419/0.5765, allocations: 3.306 MB / 423.1 MB, free: 13.67 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001201/0.5778, allocations: 1.166 MB / 424.3 MB, free: 12.47 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004845/0.5783, allocations: 79.34 kB / 424.3 MB, free: 12.39 MB / 362.7 MB Notification: Performance of SimCode: time 1.162e-06/0.5783, allocations: 0 / 424.3 MB, free: 12.39 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.